From 53cba1d004451f0782312cb203afb7da47a29c5f Mon Sep 17 00:00:00 2001 From: Xander Swan Date: Wed, 3 Dec 2025 09:52:13 -0500 Subject: update renderer structure a lil --- src/input.odin | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/input.odin') diff --git a/src/input.odin b/src/input.odin index 0dad408..6c02349 100644 --- a/src/input.odin +++ b/src/input.odin @@ -14,10 +14,9 @@ Keybind :: struct { } Input :: struct { - move_up: Keybind, move_left: Keybind, - move_down: Keybind, move_right: Keybind, + jump: Keybind, key_down: [sapp.MAX_KEYCODES]bool, key_just_down: [sapp.MAX_KEYCODES]bool, @@ -26,10 +25,9 @@ Input :: struct { } init_keybinds :: proc(input: ^Input) { - input.move_up.input = sapp.Keycode.W input.move_left.input = sapp.Keycode.A - input.move_down.input = sapp.Keycode.S input.move_right.input = sapp.Keycode.D + input.jump.input = sapp.Keycode.SPACE } input_event :: proc(event: ^sapp.Event, input: ^Input) { -- cgit v1.3-2-g0d8e