mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
Qt: Support binding half axes
This commit is contained in:
parent
a84992c395
commit
f861fa40e5
|
@ -73,6 +73,9 @@ bool InputAxisBindingMonitor::ProcessAxisInput(const ControllerInterface::Hook&
|
||||||
if (std::abs(value) < 0.5f)
|
if (std::abs(value) < 0.5f)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (m_axis_type == Controller::AxisType::Half)
|
||||||
|
half_axis_positive = (value > 0.0f);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else // Joystick
|
else // Joystick
|
||||||
|
|
Loading…
Reference in a new issue