From 1a50334c460dc2a5586f8c27f071619f9cb1e8d2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 14 Jan 2022 15:04:26 -0800 Subject: [PATCH] Fixed Xbox One trigger axis zero point --- src/joystick/hidapi/SDL_hidapi_xboxone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_xboxone.c b/src/joystick/hidapi/SDL_hidapi_xboxone.c index a5a58f875..e325c9fca 100644 --- a/src/joystick/hidapi/SDL_hidapi_xboxone.c +++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c @@ -497,7 +497,7 @@ static Sint16 FilterRightThumb(Sint16 axis) static Sint16 FilterTrigger(Sint16 axis) { if (axis <= XINPUT_GAMEPAD_TRIGGER_THRESHOLD) { - return 0; + return SDL_MIN_SINT16; } return axis; }