package demonchime import fw "fw" actions: struct { move_left: fw.Keybind, move_right: fw.Keybind, aim_left: fw.Keybind, aim_right: fw.Keybind, aim_up: fw.Keybind, aim_down: fw.Keybind, jump: fw.Keybind, dash: fw.Keybind, shoot: fw.Keybind, toggle_debug_mode: fw.Keybind, toggle_fullscreen: fw.Keybind, exit: fw.Keybind, } init_keybinds :: proc() { actions.move_left.input = .A actions.move_right.input = .D actions.aim_left.input = .A actions.aim_right.input = .D actions.aim_up.input = .W actions.aim_down.input = .S actions.jump.input = .Space actions.dash.input = .Left_Shift actions.shoot.input = .J actions.toggle_debug_mode.input = .T 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.aim_left) fw.update_keybind(&actions.aim_right) fw.update_keybind(&actions.aim_up) fw.update_keybind(&actions.aim_down) 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) }