Simplify code part

This commit is contained in:
LibretroAdmin 2022-10-08 23:08:17 +02:00
parent a1edae126c
commit 385029786c

View File

@ -3267,13 +3267,11 @@ bool command_event(enum event_command cmd, void *data)
} }
if (input_st->game_focus_state.enabled) if (input_st->game_focus_state.enabled)
input_st->flags |= INP_FLAG_BLOCK_HOTKEY; input_st->flags |= INP_FLAG_BLOCK_HOTKEY
| INP_FLAG_KB_MAPPING_BLOCKED;
else else
input_st->flags &= ~INP_FLAG_BLOCK_HOTKEY; input_st->flags &= ~(INP_FLAG_BLOCK_HOTKEY
if (input_st->game_focus_state.enabled) | INP_FLAG_KB_MAPPING_BLOCKED);
input_st->flags |= INP_FLAG_KB_MAPPING_BLOCKED;
else
input_st->flags &= ~INP_FLAG_KB_MAPPING_BLOCKED;
if (show_message) if (show_message)
runloop_msg_queue_push( runloop_msg_queue_push(