Fixed Z/X keys not working on the macOS port. (#14539)

Need to check keyboard_mapping_blocked before using apple_key_state[].
This commit is contained in:
redenvelope2000 2022-10-20 21:59:03 +08:00 committed by GitHub
parent a90a79fa95
commit c161c35738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,7 +421,7 @@ static int16_t cocoa_input_state(
return ret;
}
if (binds[port][id].valid)
if (!keyboard_mapping_blocked && binds[port][id].valid)
{
if (id < RARCH_BIND_LIST_END)
if (apple_key_state[rarch_keysym_lut[binds[port][id].key]])