Skip to content

Commit

Permalink
Do not send inputs while in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinrabbid committed Oct 27, 2024
1 parent ac391df commit df07486
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,11 @@ int main() {
}

readSettings();
input_state.releaseAll();

} else if (input_state.checkHotkey()) {
menu.activate();

input_state.releaseAll();

ControlMessage ctrl_message{ControlCommand::EnterMenu, {}};
queue_add_blocking(&control_queue, &ctrl_message);
}
Expand Down

0 comments on commit df07486

Please sign in to comment.