From 7d25bd8605176a262bb2afe5e608fd9f88944351 Mon Sep 17 00:00:00 2001 From: c vw Date: Thu, 25 Nov 2021 09:26:26 +0100 Subject: [PATCH] push-buttons: look at PRESSED vs RELEASED. --- actions.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/actions.c b/actions.c index 803de98..936ca8b 100644 --- a/actions.c +++ b/actions.c @@ -595,7 +595,7 @@ int process_action(void *data) { } break; case FUNCTION: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { switch(controller) { case NO_CONTROLLER: case CONTROLLER1: @@ -789,62 +789,62 @@ int process_action(void *data) { } break; case NUMPAD_0: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(0)); } break; case NUMPAD_1: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(1)); } break; case NUMPAD_2: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(2)); } break; case NUMPAD_3: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(3)); } break; case NUMPAD_4: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(4)); } break; case NUMPAD_5: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(5)); } break; case NUMPAD_6: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(6)); } break; case NUMPAD_7: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(7)); } break; case NUMPAD_8: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(8)); } break; case NUMPAD_9: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(9)); } break; case NUMPAD_CL: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(-1)); } break; case NUMPAD_ENTER: - if (a->mode==PRESSED) { + if(a->mode==PRESSED) { g_idle_add(ext_num_pad,GINT_TO_POINTER(-2)); } break; -- 2.45.2