mirror of https://github.com/mgba-emu/mgba.git
SDL: Ensure switching gamepad uses haptic from the right gamepad
This commit is contained in:
parent
3203158b1d
commit
b84c421865
|
@ -223,6 +223,9 @@ void GBASDLPlayerChangeJoystick(struct GBASDLEvents* events, struct GBASDLPlayer
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue