diff --git a/src/frontend-common/xinput_controller_interface.cpp b/src/frontend-common/xinput_controller_interface.cpp index 147153ea2..0d1da9879 100644 --- a/src/frontend-common/xinput_controller_interface.cpp +++ b/src/frontend-common/xinput_controller_interface.cpp @@ -289,11 +289,10 @@ bool XInputControllerInterface::HandleButtonEvent(u32 index, u32 button, bool pr return true; } - // Assume a half-axis, i.e. in 0..1 range const AxisCallback& axis_cb = m_controllers[index].button_axis_mapping[button]; if (axis_cb) { - axis_cb(pressed ? 1.0f : 0.0f); + axis_cb(pressed ? 1.0f : -1.0f); } return true; }