mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
Move device masking to upper function
This commit is contained in:
parent
6f1f17cda4
commit
0dcbb985be
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user