Qt: Support binding half axes

This commit is contained in:
Connor McLaughlin 2021-07-03 15:04:50 +10:00
parent a84992c395
commit f861fa40e5
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ bool InputAxisBindingMonitor::ProcessAxisInput(const ControllerInterface::Hook&
if (std::abs(value) < 0.5f)
return false;
if (m_axis_type == Controller::AxisType::Half)
half_axis_positive = (value > 0.0f);
return true;
}
else // Joystick