mirror of
https://github.com/libretro/RetroArch
synced 2025-02-15 18:39:55 +00:00
(rwebinput) Fix game focus toggle
This commit is contained in:
parent
13431c7cbf
commit
9a1ac6d77b
@ -479,9 +479,9 @@ static bool rwebinput_is_pressed(rwebinput_input_t *rwebinput,
|
||||
const struct retro_keybind *bind = &binds[id];
|
||||
int key = bind->key;
|
||||
|
||||
if (!rwebinput->blocked && (bind->key < RETROK_LAST) &&
|
||||
rwebinput_key_pressed(rwebinput, key))
|
||||
return true;
|
||||
if ((bind->key < RETROK_LAST) && rwebinput_key_pressed(rwebinput, key))
|
||||
if ((id == RARCH_GAME_FOCUS_TOGGLE) || !rwebinput->blocked)
|
||||
return true;
|
||||
|
||||
if (bind->valid)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user