Mercurial > repos > blastem
diff libblastem.c @ 1689:7f42a93f18a4
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
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 20 Jan 2019 19:52:54 -0800 |
parents | 395f684c5379 |
children | 319d90025d50 |
line wrap: on
line diff
--- a/libblastem.c Sun Jan 20 16:24:22 2019 -0800 +++ b/libblastem.c Sun Jan 20 19:52:54 2019 -0800 @@ -254,9 +254,9 @@ 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; }