From 385029786c5c1cf0a69f02af6ced53345db02183 Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Sat, 8 Oct 2022 23:08:17 +0200 Subject: [PATCH] Simplify code part --- retroarch.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/retroarch.c b/retroarch.c index c5d94aa82a..6921a3388c 100644 --- a/retroarch.c +++ b/retroarch.c @@ -3267,13 +3267,11 @@ bool command_event(enum event_command cmd, void *data) } 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 - input_st->flags &= ~INP_FLAG_BLOCK_HOTKEY; - if (input_st->game_focus_state.enabled) - input_st->flags |= INP_FLAG_KB_MAPPING_BLOCKED; - else - input_st->flags &= ~INP_FLAG_KB_MAPPING_BLOCKED; + input_st->flags &= ~(INP_FLAG_BLOCK_HOTKEY + | INP_FLAG_KB_MAPPING_BLOCKED); if (show_message) runloop_msg_queue_push(