diff options
author | Mike Pavone <pavone@retrodev.com> | 2019-01-20 19:52:54 -0800 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2019-01-20 19:52:54 -0800 |
commit | e1c9e57b47c8e374ef7b806c04e412fb6c0b8efa (patch) | |
tree | 5ab7c4da647fef99a3724805c769bea2175a763c /libblastem.c | |
parent | 27404027deee4f439a7c053bb9eb8425e995cb4c (diff) |
Have a suitable default IO port configuration when nonIO is present from the config file. Fixed off by one in processing gamepad button events in libretro build
Diffstat (limited to 'libblastem.c')
-rw-r--r-- | libblastem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libblastem.c b/libblastem.c index 6e64c78..2312593 100644 --- a/libblastem.c +++ b/libblastem.c @@ -254,9 +254,9 @@ void process_events() int16_t new_state = retro_input_state(port, RETRO_DEVICE_JOYPAD, 0, id); if (new_state != prev_state[port][id]) { if (new_state) { - current_system->gamepad_down(current_system, port, map[id]); + current_system->gamepad_down(current_system, port + 1, map[id]); } else { - current_system->gamepad_up(current_system, port, map[id]); + current_system->gamepad_up(current_system, port + 1, map[id]); } prev_state[port][id] = new_state; } |