From cf10b4323da80ea564b6b5a07b48faf375471af9 Mon Sep 17 00:00:00 2001 From: neonloop Date: Thu, 11 Mar 2021 01:00:34 +0000 Subject: Restricts input handling to player 1 Without this change, it acted like every controller was hitting the button, which broke selecting 1P mode on some Nintendo games. --- shell/input/sdl/input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/input/sdl/input.c b/shell/input/sdl/input.c index 6ddc761..a4ceba3 100644 --- a/shell/input/sdl/input.c +++ b/shell/input/sdl/input.c @@ -50,6 +50,9 @@ uint32_t S9xReadJoypad(int32_t port) int32_t i; uint32_t joypad = 0; + // Only 1P is supported + if (port > 0) return joypad; + keystate = SDL_GetKeyState(NULL); while (SDL_PollEvent(&event)) -- cgit v1.2.3