Skip to content

Commit 27b67c1

Browse files
committed
Fix keyboard_mapping_blocked usage (game focus)
1 parent eafd46d commit 27b67c1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

input/drivers/android_input.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ uint8_t *android_keyboard_state_get(unsigned port)
102102
return android_key_state[port];
103103
}
104104

105-
/* TODO/FIXME -
106-
* fix game focus toggle */
107-
108105
typedef struct
109106
{
110107
float x;
@@ -1726,7 +1723,9 @@ static int16_t android_input_state(
17261723
if (binds[port][id].valid)
17271724
{
17281725
if ( (binds[port][id].key && binds[port][id].key < RETROK_LAST)
1729-
&& ANDROID_KEYBOARD_PORT_INPUT_PRESSED(binds[port], id))
1726+
&& ANDROID_KEYBOARD_PORT_INPUT_PRESSED(binds[port], id)
1727+
&& (id == RARCH_GAME_FOCUS_TOGGLE || !keyboard_mapping_blocked)
1728+
)
17301729
return 1;
17311730
}
17321731
}

0 commit comments

Comments
 (0)