mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
demo: hook up menu mouse support #309
This commit is contained in:
parent
6690bc6bb9
commit
6966632821
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user