From 6966632821401741da25df2fd8d3a7c4a929c607 Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 3 Mar 2020 00:02:18 -0500 Subject: [PATCH] demo: hook up menu mouse support #309 --- src/demo/input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/demo/input.c b/src/demo/input.c index cd3cf4d0a..00440f1f3 100644 --- a/src/demo/input.c +++ b/src/demo/input.c @@ -97,6 +97,10 @@ ultramegaok_demo(void* vnc){ if(id == 0){ continue; } + // if this was about the menu or HUD, pass to them, and continue + if(menu_or_hud_key(nc, &ni)){ + continue; + } if(nckey_mouse_p(ni.id)){ if(handle_mouse(&ni)){ continue; @@ -108,10 +112,6 @@ ultramegaok_demo(void* vnc){ unlock_demo_render(); continue; } - // if this was about the menu or HUD, pass to them, and continue - if(menu_or_hud_key(nc, &ni)){ - continue; - } // go ahead and pass keyboard through to demo, even if it was a 'q' // (this might cause the demo to exit immediately, as is desired) pass_along(&ni);