From 0dcbb985beb6466615837ef3c2cb136fc5ac9c7c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 24 Jun 2019 02:20:24 +0200 Subject: [PATCH] Move device masking to upper function --- retroarch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/retroarch.c b/retroarch.c index 7ddfa731cc..e06552c045 100644 --- a/retroarch.c +++ b/retroarch.c @@ -2532,8 +2532,6 @@ static int16_t input_state_internal( is in action for that button*/ bool reset_state = false; - device &= RETRO_DEVICE_MASK; - if (bsv_movie_get_input(&bsv_result)) return bsv_result; @@ -2684,6 +2682,7 @@ static int16_t input_state_internal( int16_t input_state(unsigned port, unsigned device, unsigned idx, unsigned id) { + device &= RETRO_DEVICE_MASK; if ( (device == RETRO_DEVICE_JOYPAD) && (id == RETRO_DEVICE_ID_JOYPAD_MASK)) {