From d5f4933b441d84ca7c3568a46d4a0ffeaba7d9f3 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 7 Jul 2013 13:44:32 +0200 Subject: [PATCH] Bugfix R2 on x360 controller --- Windows/XinputDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/XinputDevice.cpp b/Windows/XinputDevice.cpp index 46fc86f151..84c2c164b4 100644 --- a/Windows/XinputDevice.cpp +++ b/Windows/XinputDevice.cpp @@ -144,7 +144,7 @@ void XinputDevice::ApplyButtons(XINPUT_STATE &state, InputState &input_state) { if (state.Gamepad.bLeftTrigger > XINPUT_GAMEPAD_TRIGGER_THRESHOLD) buttons |= XBOX_CODE_LEFTTRIGGER; - if (state.Gamepad.bLeftTrigger > XINPUT_GAMEPAD_TRIGGER_THRESHOLD) + if (state.Gamepad.bRightTrigger > XINPUT_GAMEPAD_TRIGGER_THRESHOLD) buttons |= XBOX_CODE_RIGHTTRIGGER; const SHORT rthreshold = 22000;