adjusted hook to be toggle; renamed HasPressed to CheckPressed (keybind)

This commit is contained in:
lustlion
2022-02-12 20:03:48 +01:00
parent 6566e6fbab
commit 9d1e59b46a
6 changed files with 107 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ function Keybind:CheckDown(action)
return false
end
function Keybind:HasPressed(action)
function Keybind:CheckPressed(action)
if Keybind:CheckDown(action) then
if not action.pressed then
action.pressed = true