aboutsummaryrefslogtreecommitdiff
path: root/src/input.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/input.odin
parent1ff729f696c895f81f0cf0d1b8a2cca1d6e43eb8 (diff)
Only process keys that are bound to an action
Diffstat (limited to 'src/input.odin')
-rw-r--r--src/input.odin11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/input.odin b/src/input.odin
index ee90fcd..ba773a3 100644
--- a/src/input.odin
+++ b/src/input.odin
@@ -23,3 +23,14 @@ init_keybinds :: proc() {
actions.toggle_fullscreen.input = .F11
actions.exit.input = .Escape
}
+
+update_keybinds :: proc() {
+ fw.update_keybind(&actions.move_left)
+ fw.update_keybind(&actions.move_right)
+ fw.update_keybind(&actions.jump)
+ fw.update_keybind(&actions.dash)
+ fw.update_keybind(&actions.shoot)
+ fw.update_keybind(&actions.toggle_debug_mode)
+ fw.update_keybind(&actions.toggle_fullscreen)
+ fw.update_keybind(&actions.exit)
+}