mirror of https://github.com/encounter/SDL.git
Fixed Xbox One trigger axis zero point
This commit is contained in:
parent
e9511f7136
commit
1a50334c46
|
@ -497,7 +497,7 @@ static Sint16 FilterRightThumb(Sint16 axis)
|
||||||
static Sint16 FilterTrigger(Sint16 axis)
|
static Sint16 FilterTrigger(Sint16 axis)
|
||||||
{
|
{
|
||||||
if (axis <= XINPUT_GAMEPAD_TRIGGER_THRESHOLD) {
|
if (axis <= XINPUT_GAMEPAD_TRIGGER_THRESHOLD) {
|
||||||
return 0;
|
return SDL_MIN_SINT16;
|
||||||
}
|
}
|
||||||
return axis;
|
return axis;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue