Fixed macOS keyboard bindings in game focus mode. (#14570)

In the game focus mode the keyboard should not be remapped for joypads unless it is used for toggling the game focus mode.
This commit is contained in:
redenvelope2000 2022-10-31 18:35:17 +08:00 committed by GitHub
parent 9e84c89233
commit 47070a64e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -424,8 +424,10 @@ static int16_t cocoa_input_state(
if (binds[port][id].valid)
{
if (id < RARCH_BIND_LIST_END)
if (apple_key_state[rarch_keysym_lut[binds[port][id].key]])
return 1;
if (!keyboard_mapping_blocked || (id == RARCH_GAME_FOCUS_TOGGLE))
if (apple_key_state[rarch_keysym_lut[binds[port][id].key]])
return 1;
}
break;
case RETRO_DEVICE_ANALOG: