From e1c9e57b47c8e374ef7b806c04e412fb6c0b8efa Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sun, 20 Jan 2019 19:52:54 -0800 Subject: 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 --- libblastem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libblastem.c') 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; } -- cgit v1.2.3