This commit is contained in:
silicons
2020-10-05 13:29:53 -07:00
parent f44a3fa7b5
commit 7c07863179
8 changed files with 47 additions and 22 deletions
@@ -1,6 +1,7 @@
// Clients aren't datums so we have to define these procs indpendently.
// These verbs are called for all key press and release events
/client/verb/keyDown(_key as text)
SHOULD_NOT_SLEEP(TRUE)
set instant = TRUE
set hidden = TRUE
@@ -83,6 +84,7 @@
keyUp("[key]")
/client/verb/keyUp(_key as text)
SHOULD_NOT_SLEEP(TRUE)
set instant = TRUE
set hidden = TRUE
+3
View File
@@ -1,10 +1,13 @@
/datum/proc/key_down(key, client/user) // Called when a key is pressed down initially
SHOULD_NOT_SLEEP(TRUE)
return
/datum/proc/key_up(key, client/user) // Called when a key is released
SHOULD_NOT_SLEEP(TRUE)
return
/datum/proc/keyLoop(client/user) // Called once every frame
SHOULD_NOT_SLEEP(TRUE)
set waitfor = FALSE
return