Skip to content

Commit

Permalink
Additional special button combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
RowdyVoyeur authored Aug 11, 2024
1 parent c853e7e commit 387f7a8
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 @@ -451,7 +451,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 387f7a8

Please sign in to comment.