]> bicyclesonthemoon.info Git - klavirko/ui/commitdiff
remove event debug
authorb <rowerynaksiezycu@gmail.com>
Sat, 28 Dec 2024 16:56:27 +0000 (17:56 +0100)
committerb <rowerynaksiezycu@gmail.com>
Sat, 28 Dec 2024 16:56:27 +0000 (17:56 +0100)
gui.c

diff --git a/gui.c b/gui.c
index ea244d118c12765daff5509d8b0522df83df20ce..162ab28eb8c6910e36847bf8089a35de7972eac3 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -1211,43 +1211,43 @@ void handle_gui(void)
                else
                        ++gui_event_r;
                
-               if ((event & EVENT_BITS) == EVENT_JOG)
-               {
-                       debug_string("JOG", 1);
-                       if ((event & JOG_BITS) == JOG_PLUS)
-                               debug_string("+", 1);
-                       if ((event & JOG_BITS) == JOG_MINUS)
-                               debug_string("-", 1);
-                       debug_dec(event & JOG_TIME_BITS, 1, 0);
-               }
-               else
-               {
-                       if (event & BUTTON_A)
-                               debug_string("A", 1);
-                       if (event & BUTTON_B)
-                               debug_string("B", 1);
-                       if (event & BUTTON_C)
-                               debug_string("C", 1);
-                       if (event & BUTTON_D)
-                               debug_string("D", 1);
-                       if (event & BUTTON_E)
-                               debug_string("E", 1);
-                       if (event & BUTTON_F)
-                               debug_string("F", 1);
-                       if (event & BUTTON_X)
-                               debug_string("X", 1);
-                       if (event & BUTTON_Y)
-                               debug_string("Y", 1);
-                       if ((event & EVENT_BITS) == EVENT_PRESS)
-                               debug_string(" PRESS", 1);
-                       if ((event & EVENT_BITS) == EVENT_RELEASE)
-                               debug_string(" RELEASE", 1);
-                       if ((event & EVENT_BITS) == EVENT_HOLD)
-                               debug_string(" HOLD", 1);
-                       if (event & EVENT_WAS_HOLD)
-                               debug_string(" (WAS HOLD)", 1);
-               }
-               debug_string("\r\n", 1);
+               // if ((event & EVENT_BITS) == EVENT_JOG)
+               // {
+                       // debug_string("JOG", 1);
+                       // if ((event & JOG_BITS) == JOG_PLUS)
+                               // debug_string("+", 1);
+                       // if ((event & JOG_BITS) == JOG_MINUS)
+                               // debug_string("-", 1);
+                       // debug_dec(event & JOG_TIME_BITS, 1, 0);
+               // }
+               // else
+               // {
+                       // if (event & BUTTON_A)
+                               // debug_string("A", 1);
+                       // if (event & BUTTON_B)
+                               // debug_string("B", 1);
+                       // if (event & BUTTON_C)
+                               // debug_string("C", 1);
+                       // if (event & BUTTON_D)
+                               // debug_string("D", 1);
+                       // if (event & BUTTON_E)
+                               // debug_string("E", 1);
+                       // if (event & BUTTON_F)
+                               // debug_string("F", 1);
+                       // if (event & BUTTON_X)
+                               // debug_string("X", 1);
+                       // if (event & BUTTON_Y)
+                               // debug_string("Y", 1);
+                       // if ((event & EVENT_BITS) == EVENT_PRESS)
+                               // debug_string(" PRESS", 1);
+                       // if ((event & EVENT_BITS) == EVENT_RELEASE)
+                               // debug_string(" RELEASE", 1);
+                       // if ((event & EVENT_BITS) == EVENT_HOLD)
+                               // debug_string(" HOLD", 1);
+                       // if (event & EVENT_WAS_HOLD)
+                               // debug_string(" (WAS HOLD)", 1);
+               // }
+               // debug_string("\r\n", 1);
                        
                // execute appropriate event handler for current state
                switch (gui_state)