From ebb1052278c198889599ff5c7152e67f23d3cf07 Mon Sep 17 00:00:00 2001 From: CakeLancelot Date: Fri, 25 Jan 2019 14:21:04 -0600 Subject: [PATCH] xid: Fix trigger range in xid-sdl --- hw/xbox/xid-sdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xbox/xid-sdl.c b/hw/xbox/xid-sdl.c index 31a28a8d12..5b62193acf 100644 --- a/hw/xbox/xid-sdl.c +++ b/hw/xbox/xid-sdl.c @@ -273,11 +273,11 @@ static void update_input(USBXIDState *s) /* Triggers */ state = SDL_GameControllerGetAxis(s->sdl_gamepad, SDL_CONTROLLER_AXIS_TRIGGERLEFT); - s->in_state.bAnalogButtons[GAMEPAD_LEFT_TRIGGER] = state >> 8; + s->in_state.bAnalogButtons[GAMEPAD_LEFT_TRIGGER] = state >> 7; state = SDL_GameControllerGetAxis(s->sdl_gamepad, SDL_CONTROLLER_AXIS_TRIGGERRIGHT); - s->in_state.bAnalogButtons[GAMEPAD_RIGHT_TRIGGER] = state >> 8; + s->in_state.bAnalogButtons[GAMEPAD_RIGHT_TRIGGER] = state >> 7; /* Analog sticks */ s->in_state.sThumbLX = SDL_GameControllerGetAxis(s->sdl_gamepad,