mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
DolphinQt/Mapping: Disable relative input when "Mouse Controlled Pointing" button is pressed.
This commit is contained in:
parent
dbc7e03577
commit
31dc3477ad
4 changed files with 14 additions and 2 deletions
|
@ -181,6 +181,11 @@ ControlState Cursor::GetVerticalOffset() const
|
|||
return m_vertical_offset_setting.GetValue() / 100;
|
||||
}
|
||||
|
||||
void Cursor::SetRelativeInput(bool value)
|
||||
{
|
||||
m_relative_setting.SetValue(value);
|
||||
}
|
||||
|
||||
bool Cursor::StateData::IsVisible() const
|
||||
{
|
||||
return !std::isnan(x);
|
||||
|
|
|
@ -40,6 +40,8 @@ public:
|
|||
// Vertical offset in meters.
|
||||
ControlState GetVerticalOffset() const;
|
||||
|
||||
void SetRelativeInput(bool enabled);
|
||||
|
||||
private:
|
||||
Cursor::StateData UpdateState(Cursor::ReshapeData input);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue