From fa44adacf8af44a86c94462f90829bb9f8cd8a11 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 6 Jun 2021 15:40:50 +0200 Subject: [PATCH] Cleanup --- core/libretro.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/libretro.c b/core/libretro.c index 4b25185..b77cca1 100644 --- a/core/libretro.c +++ b/core/libretro.c @@ -224,11 +224,14 @@ static void update_input(void) input_poll_cb(); - for (j = 0; j < 2; j++) + if (libretro_supports_bitmasks) { - if (libretro_supports_bitmasks) + for (j = 0; j < 2; j++) joypad_bits[j] = input_state_cb(j, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_MASK); - else + } + else + { + for (j = 0; j < 2; j++) { joypad_bits[j] = 0; for (i = 0; i < (RETRO_DEVICE_ID_JOYPAD_R3+1); i++)