package demonchime import fw "fw" actions: struct { move_left: fw.Keybind, move_right: 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.jump.input = .Space actions.dash.input = .Left_Shift actions.shoot.input = fw.Mouse_Button.Left 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.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) }