SDL: Ensure switching gamepad uses haptic from the right gamepad
Jeffrey Pfau jeffrey@endrift.com
Sun, 19 Apr 2015 03:43:00 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/platform/sdl/sdl-events.c
→
src/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) {