diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-11-25 20:43:20 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-11-25 20:43:20 -0800 |
commit | f4767bb05392fa4a04d72969fa35aa91b688c8cb (patch) | |
tree | 431e023a080a27d2c5602238cdc032bfab974f58 /io.c | |
parent | c6edea8bbaceda316375019344f4e7ffbf6da57e (diff) |
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
--HG--
branch : nuklear_ui
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -381,6 +381,9 @@ void handle_joydown(int joystick, int button) void handle_mousedown(int mouse, int button) { + if (!current_io) { + return; + } if (current_io->mouse_mode == MOUSE_CAPTURE && !current_io->mouse_captured) { current_io->mouse_captured = 1; render_relative_mouse(1); @@ -537,7 +540,7 @@ void handle_binding_up(keybinding * binding) } case UI_EXIT: #ifndef DISABLE_NUKLEAR - if (is_nuklear_active) { + if (is_nuklear_active()) { show_pause_menu(); } else { #endif |