all repos — mgba @ b84c4218651547f56285bb5f38006aeb027aee87

mGBA Game Boy Advance Emulator

SDL: Ensure switching gamepad uses haptic from the right gamepad
Jeffrey Pfau jeffrey@endrift.com
Sun, 19 Apr 2015 03:43:00 -0700
commit

b84c4218651547f56285bb5f38006aeb027aee87

parent

3203158b1d6eaf7a8c88f648c639981af4568bc7

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/platform/sdl/sdl-events.csrc/platform/sdl/sdl-events.c

@@ -223,6 +223,9 @@ }

events->joysticksClaimed[player->playerId] = index; player->joystickIndex = index; player->joystick = events->joysticks[index]; +#if SDL_VERSION_ATLEAST(2, 0, 0) + player->haptic = events->haptic[index]; +#endif } static void _pauseAfterFrame(struct GBAThread* context) {