diff nuklear_ui/blastem_nuklear.c @ 1862:e07fc3d473b2

Basic UI navigation with controller
author Michael Pavone <pavone@retrodev.com>
date Wed, 08 May 2019 23:44:40 -0700
parents 52f136052ab0
children 93960907807a
line wrap: on
line diff
--- a/nuklear_ui/blastem_nuklear.c	Fri May 03 18:56:12 2019 -0700
+++ b/nuklear_ui/blastem_nuklear.c	Wed May 08 23:44:40 2019 -0700
@@ -2001,6 +2001,7 @@
 
 void ui_idle_loop(void)
 {
+	render_enable_gamepad_events(1);
 	const uint32_t MIN_UI_DELAY = 15;
 	static uint32_t last;
 	while (current_view != view_play)
@@ -2017,6 +2018,7 @@
 		persist_config(config);
 		config_dirty = 0;
 	}
+	render_enable_gamepad_events(0);
 }
 static void handle_event(SDL_Event *event)
 {