Skip to content

Commit

Permalink
Add two button combinations
Browse files Browse the repository at this point in the history
Reset Display: SELECT + OPTION + UP
Quit M8C: SELECT + OPTION + DOWN
  • Loading branch information
RowdyVoyeur authored Apr 23, 2024
1 parent 9a8f47c commit 340367b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,15 @@ input_msg_s get_input_msg(config_params_s *conf) {
if (!keyjazz_enabled && keycode == (key_start | key_select | key_opt | key_edit)) {
key = (input_msg_s){special, msg_reset_display};
}


// Additional special button combinations
if (keycode == (key_select | key_opt | key_up)) {
key = (input_msg_s){special, msg_reset_display};
}
if (keycode == (key_select | key_opt | key_down)) {
key = (input_msg_s){special, msg_quit};
}

if (key.type == normal) {
/* Normal input keys go through some event-based manipulation in
handle_sdl_events(), the value is stored in keycode variable */
Expand Down

0 comments on commit 340367b

Please sign in to comment.