diff options
author | m45t3r | 2020-05-27 20:23:12 -0300 |
---|---|---|
committer | m45t3r | 2020-05-27 20:31:44 -0300 |
commit | edeffb2aa9b74a4a6cfcdada0857ade94b1195dd (patch) | |
tree | 6ee12d383f92c258f0d8b099321bbeb727e33a9f /shell/input | |
parent | b8eeac90c86193e0c628198dbc77596b4e214209 (diff) | |
download | snesemu-edeffb2aa9b74a4a6cfcdada0857ade94b1195dd.tar.gz snesemu-edeffb2aa9b74a4a6cfcdada0857ade94b1195dd.tar.bz2 snesemu-edeffb2aa9b74a4a6cfcdada0857ade94b1195dd.zip |
Fix input for Miyoo
Diffstat (limited to 'shell/input')
-rw-r--r-- | shell/input/sdl/input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/input/sdl/input.c b/shell/input/sdl/input.c index d47b889..b26af1f 100644 --- a/shell/input/sdl/input.c +++ b/shell/input/sdl/input.c @@ -50,9 +50,9 @@ uint32_t S9xReadJoypad(int32_t port) int32_t i; uint32_t joypad = 0; - + keystate = SDL_GetKeyState(NULL); - + SDL_PollEvent(&event); CASE(option.config_buttons[0][10], SNES_START_MASK); @@ -67,8 +67,8 @@ uint32_t S9xReadJoypad(int32_t port) CASE(option.config_buttons[0][1], SNES_RIGHT_MASK); CASE(option.config_buttons[0][2], SNES_DOWN_MASK); CASE(option.config_buttons[0][3], SNES_LEFT_MASK); - - if (keystate[SDLK_END]) emulator_state = 1; + + if (keystate[option.config_buttons[0][12]]) emulator_state = 1; return joypad; } |