Skip to content

Commit

Permalink
Also allow uppercase Q as an exit key
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Mar 19, 2024
1 parent f4156fa commit 298362c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bool engine::run()
const auto ch = os::getch();
if (ch == 32) {
_jump_pressed = true;
} else if (ch == 'q' || ch == 27 || ch == 3) {
} else if (ch == 'q' || ch == 'Q' || ch == 27 || ch == 3) {
exit_requested = true;
}
}
Expand Down

0 comments on commit 298362c

Please sign in to comment.