From 93c27830060788dea1c364465d29e44d05a3064e Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Sat, 14 Feb 2026 18:02:47 -0500 Subject: Only process keys that are bound to an action --- src/main.odin | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main.odin') diff --git a/src/main.odin b/src/main.odin index 4993d3c..9bc047e 100644 --- a/src/main.odin +++ b/src/main.odin @@ -51,6 +51,8 @@ init :: proc() { } frame :: proc() { + update_keybinds() + if fw.is_keybind_just_down(actions.toggle_debug_mode) { state.debug_mode = !state.debug_mode } @@ -88,10 +90,13 @@ frame :: proc() { ) - draw_room(current_room.id) for cb in draw_callbacks { cb() } + draw_room(current_room.id) + for cb in fg_draw_callbacks { + cb() + } fw.draw_rect_gradient( {0, 0}, -- cgit v1.3-2-g0d8e