test/snake/snake.c

changeset 141
cd82643bb6d9
parent 140
d190fe5315bd
--- a/test/snake/snake.c	Mon Jun 09 13:18:41 2025 +0200
+++ b/test/snake/snake.c	Mon Jun 09 14:02:40 2025 +0200
@@ -207,14 +207,13 @@
         }
 
         // debug-key for clearing the shader registry
-        if (asc_key_pressed(S)) {
-            // TODO: implement edge-triggered key press handling
+        if (asc_key_pressed(ASC_KEY(S))) {
             asc_shader_clear_registry();
             asc_dprintf("Shader cache cleared.");
         }
 
         // quit application on ESC key press
-        if (asc_key_pressed(ESCAPE)) {
+        if (asc_key_pressed(ASC_KEY(ESCAPE))) {
             asc_context_quit();
         }
     } while (asc_loop_next());

mercurial