Fixed Xbox One trigger axis zero point
diff --git a/src/joystick/hidapi/SDL_hidapi_xboxone.c b/src/joystick/hidapi/SDL_hidapi_xboxone.c
index a5a58f8..e325c9f 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;
}