Mercurial > repos > blastem
comparison io.c @ 1483:001120e91fed nuklear_ui
Skip loading menu ROM if Nuklear UI is enabled. Allow disabling Nuklear UI in favor of old menu ROM both at compile time and in config. Fall back to ROM UI if GL is unavailable
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 25 Nov 2017 20:43:20 -0800 |
parents | da1dce39e846 |
children | f29bd94ffa76 |
comparison
equal
deleted
inserted
replaced
1482:2d203bf73dbd | 1483:001120e91fed |
---|---|
379 handle_binding_down(binding); | 379 handle_binding_down(binding); |
380 } | 380 } |
381 | 381 |
382 void handle_mousedown(int mouse, int button) | 382 void handle_mousedown(int mouse, int button) |
383 { | 383 { |
384 if (!current_io) { | |
385 return; | |
386 } | |
384 if (current_io->mouse_mode == MOUSE_CAPTURE && !current_io->mouse_captured) { | 387 if (current_io->mouse_mode == MOUSE_CAPTURE && !current_io->mouse_captured) { |
385 current_io->mouse_captured = 1; | 388 current_io->mouse_captured = 1; |
386 render_relative_mouse(1); | 389 render_relative_mouse(1); |
387 return; | 390 return; |
388 } | 391 } |
535 render_save_screenshot(path); | 538 render_save_screenshot(path); |
536 break; | 539 break; |
537 } | 540 } |
538 case UI_EXIT: | 541 case UI_EXIT: |
539 #ifndef DISABLE_NUKLEAR | 542 #ifndef DISABLE_NUKLEAR |
540 if (is_nuklear_active) { | 543 if (is_nuklear_active()) { |
541 show_pause_menu(); | 544 show_pause_menu(); |
542 } else { | 545 } else { |
543 #endif | 546 #endif |
544 current_system->request_exit(current_system); | 547 current_system->request_exit(current_system); |
545 if (current_system->type == SYSTEM_GENESIS) { | 548 if (current_system->type == SYSTEM_GENESIS) { |