fix game focus mode

This commit is contained in:
Grant 2021-06-19 07:59:06 +01:00
parent 863aaa5b9d
commit eef86d5f72

View File

@ -1057,6 +1057,13 @@ static int16_t udev_input_state(
if (binds[port][id].valid) if (binds[port][id].valid)
{ {
if ( if (
(binds[port][id].key < RETROK_LAST) &&
udev_keyboard_pressed(udev, binds[port][id].key)
&& (( id != RARCH_GAME_FOCUS_TOGGLE)
|| !keyboard_mapping_blocked)
)
return 1;
else if (
(binds[port][id].key < RETROK_LAST) && (binds[port][id].key < RETROK_LAST) &&
udev_keyboard_pressed(udev, binds[port][id].key) udev_keyboard_pressed(udev, binds[port][id].key)
&& (( id == RARCH_GAME_FOCUS_TOGGLE) && (( id == RARCH_GAME_FOCUS_TOGGLE)