This commit is contained in:
twinaphex 2020-06-11 19:03:50 +02:00
parent 42984968f2
commit f12ac35438
2 changed files with 5 additions and 8 deletions

View File

@ -625,9 +625,8 @@ static int16_t dinput_input_state(void *data,
return 1; return 1;
} }
if (binds[port][id].valid) if (binds[port][id].valid)
if (dinput_is_pressed( return dinput_is_pressed(
di, settings, joypad_info, binds[port], port, id)) di, settings, joypad_info, binds[port], port, id);
return 1;
} }
} }
} }
@ -736,9 +735,8 @@ static int16_t dinput_input_state(void *data,
return 1; return 1;
} }
if (binds[port][new_id].valid) if (binds[port][new_id].valid)
if (dinput_is_pressed(di, settings, joypad_info, return dinput_is_pressed(di, settings, joypad_info,
binds[port], port, new_id)) binds[port], port, new_id);
return 1;
} }
break; break;
/*deprecated*/ /*deprecated*/

View File

@ -1033,8 +1033,7 @@ static int16_t udev_input_state(void *data,
else else
{ {
if (id < RARCH_BIND_LIST_END) if (id < RARCH_BIND_LIST_END)
if (udev_is_pressed(udev, joypad_info, binds[port], port, id)) return udev_is_pressed(udev, joypad_info, binds[port], port, id);
return 1;
} }
break; break;
case RETRO_DEVICE_ANALOG: case RETRO_DEVICE_ANALOG: