diff --git a/input/drivers/cocoa_input.c b/input/drivers/cocoa_input.c index 57f3181690..540b339b51 100644 --- a/input/drivers/cocoa_input.c +++ b/input/drivers/cocoa_input.c @@ -316,7 +316,7 @@ static bool cocoa_input_key_pressed(void *data, int key) settings_t *settings = config_get_ptr(); int port = 0; - if (apple_input_is_pressed(0, settings->input.binds[0], key)) + if (settings->input.binds[0][key].valid && apple_input_is_pressed(0, settings->input.binds[0], key)) return true; if (settings->input.all_users_control_menu) diff --git a/input/drivers_keyboard/keyboard_event_apple.c b/input/drivers_keyboard/keyboard_event_apple.c index fdcc9cdb6b..689591ca74 100644 --- a/input/drivers_keyboard/keyboard_event_apple.c +++ b/input/drivers_keyboard/keyboard_event_apple.c @@ -313,7 +313,7 @@ int16_t apple_input_is_pressed(unsigned port_num, { const struct retro_keybind *bind = &binds[id]; unsigned bit = input_keymaps_translate_rk_to_keysym(bind->key); - return bind->valid && apple_key_state[bit]; + return apple_key_state[bit]; } return 0; }