summaryrefslogtreecommitdiff
path: root/nuklear_ui/blastem_nuklear.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-05-08 23:44:40 -0700
committerMichael Pavone <pavone@retrodev.com>2019-05-08 23:44:40 -0700
commitadf1a574067b9d8debc86d4984502b018d38b123 (patch)
treeb7b24eead4cbc430b1357682a2e50b1dee917e9b /nuklear_ui/blastem_nuklear.c
parentfb7c8ebe5b784e2bd5c8983565f4314ced2e58b7 (diff)
Basic UI navigation with controller
Diffstat (limited to 'nuklear_ui/blastem_nuklear.c')
-rw-r--r--nuklear_ui/blastem_nuklear.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuklear_ui/blastem_nuklear.c b/nuklear_ui/blastem_nuklear.c
index 05ccb75..8773b90 100644
--- a/nuklear_ui/blastem_nuklear.c
+++ b/nuklear_ui/blastem_nuklear.c
@@ -2001,6 +2001,7 @@ void blastem_nuklear_render(void)
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 @@ void ui_idle_loop(void)
persist_config(config);
config_dirty = 0;
}
+ render_enable_gamepad_events(0);
}
static void handle_event(SDL_Event *event)
{