mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
DolphinQt/Mapping: Disable relative input when "Mouse Controlled Pointing" button is pressed.
This commit is contained in:
@ -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);
|
||||
|
||||
|
@ -186,7 +186,6 @@ public:
|
||||
|
||||
bool IsSimpleValue() const { return m_input.GetExpression().empty(); }
|
||||
|
||||
private:
|
||||
void SetValue(ValueType value)
|
||||
{
|
||||
m_value = value;
|
||||
@ -195,6 +194,7 @@ private:
|
||||
m_input.SetExpression("");
|
||||
}
|
||||
|
||||
private:
|
||||
// Values are R/W by both UI and CPU threads.
|
||||
mutable std::atomic<ValueType> m_value = {};
|
||||
|
||||
|
Reference in New Issue
Block a user