diff options
author | neonloop | 2021-03-31 21:15:44 +0000 |
---|---|---|
committer | neonloop | 2021-03-31 21:15:44 +0000 |
commit | f3062732940cf086e1961aa95ac62adfb6f031f5 (patch) | |
tree | 74f0dc135e830ba1699b422447150a0f859ea200 /shell/input/sdl/input.c | |
parent | 257175870d76d889de9b5f906ab16a15420a48fa (diff) | |
parent | ae67b055fec6a8cc843554d8190e018a6ae9b89d (diff) | |
download | snes9x2002-f3062732940cf086e1961aa95ac62adfb6f031f5.tar.gz snes9x2002-f3062732940cf086e1961aa95ac62adfb6f031f5.tar.bz2 snes9x2002-f3062732940cf086e1961aa95ac62adfb6f031f5.zip |
Merge branch 'eggs-improvements' into trimui-s
Diffstat (limited to 'shell/input/sdl/input.c')
-rw-r--r-- | shell/input/sdl/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/input/sdl/input.c b/shell/input/sdl/input.c index bf6cff5..ad70881 100644 --- a/shell/input/sdl/input.c +++ b/shell/input/sdl/input.c @@ -26,6 +26,9 @@ static uint32_t joypad = 0; uint32_t S9xReadJoypad(int32_t port) { + // Only 1P is supported + if (port != 0) return 0; + SDL_Event event; static const uint32_t snes_lut[] = { @@ -43,9 +46,6 @@ uint32_t S9xReadJoypad(int32_t port) SNES_TR_MASK }; - // Only 1P is supported - if (port > 0) return joypad; - while (SDL_PollEvent(&event)) { switch (event.type) |