aboutsummaryrefslogtreecommitdiff
path: root/src/input.odin
diff options
context:
space:
mode:
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)
+}