diff options
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/misc.c b/apps/misc.c index 3fe330b8fe..78ee154c56 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -887,13 +887,15 @@ void keyclick_set_callback(keyclick_callback cb, void* data) | |||
887 | } | 887 | } |
888 | 888 | ||
889 | /* Produce keyclick based upon button and global settings */ | 889 | /* Produce keyclick based upon button and global settings */ |
890 | void keyclick_click(int action) | 890 | void keyclick_click(int context, int action) |
891 | { | 891 | { |
892 | int button; | 892 | int button = action; |
893 | static long last_button = BUTTON_NONE; | 893 | static long last_button = BUTTON_NONE; |
894 | bool do_beep = false; | 894 | bool do_beep = false; |
895 | 895 | ||
896 | get_action_statuscode(&button); | 896 | if (!(context & CONTEXT_RAWBUTTON)) |
897 | get_action_statuscode(&button); | ||
898 | |||
897 | /* Settings filters */ | 899 | /* Settings filters */ |
898 | if ( | 900 | if ( |
899 | #ifdef HAVE_HARDWARE_CLICK | 901 | #ifdef HAVE_HARDWARE_CLICK |