mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 03:40:59 +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];
|
const struct retro_keybind *bind = &binds[id];
|
||||||
int key = bind->key;
|
int key = bind->key;
|
||||||
|
|
||||||
if (!rwebinput->blocked && (bind->key < RETROK_LAST) &&
|
if ((bind->key < RETROK_LAST) && rwebinput_key_pressed(rwebinput, key))
|
||||||
rwebinput_key_pressed(rwebinput, key))
|
if ((id == RARCH_GAME_FOCUS_TOGGLE) || !rwebinput->blocked)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (bind->valid)
|
if (bind->valid)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user