aboutsummaryrefslogtreecommitdiff
path: root/src/main.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-02-14 18:02:47 -0500
committeriamcheeseman <[hidden email]>2026-02-14 18:02:47 -0500
commit93c27830060788dea1c364465d29e44d05a3064e (patch)
tree4a8e1f6628026a4fb82c8a1c6084f2e35750cc28 /src/main.odin
parent1ff729f696c895f81f0cf0d1b8a2cca1d6e43eb8 (diff)
Only process keys that are bound to an action
Diffstat (limited to 'src/main.odin')
-rw-r--r--src/main.odin7
1 files changed, 6 insertions, 1 deletions
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},