remapped debug controls and made them changeable
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
Keybind = {}
|
||||
Keybind.move = {}
|
||||
Keybind.menu = {}
|
||||
Keybing.debug = {}
|
||||
|
||||
function Keybind:Check(action)
|
||||
for _, keyname in pairs(action) do
|
||||
@@ -35,6 +36,9 @@ function Keybind:Remove(action)
|
||||
end
|
||||
|
||||
function Keybind:Default()
|
||||
--Menu
|
||||
Keybind.menu.menu = {"escape"}
|
||||
--Move
|
||||
Keybind.move.left = {"left", "a"}
|
||||
Keybind.move.right = {"right", "d"}
|
||||
Keybind.move.up = {"up", "w"}
|
||||
@@ -42,6 +46,11 @@ function Keybind:Default()
|
||||
Keybind.move.jump = {"z", "space"}
|
||||
Keybind.move.attack = {"x", 1}
|
||||
Keybind.move.dash = {"c", 2}
|
||||
--Debug
|
||||
Keybind.debug.debug = {"f1"}
|
||||
Keybind.debug.reposition = {"f2"}
|
||||
Keybind.debug.reload = {"f3"}
|
||||
Keybind.debug.editor = {"f4"}
|
||||
end
|
||||
|
||||
-- Set default values at start
|
||||
|
||||
Reference in New Issue
Block a user