aboutsummaryrefslogtreecommitdiff
path: root/controls.wren
diff options
context:
space:
mode:
Diffstat (limited to 'controls.wren')
-rw-r--r--controls.wren6
1 files changed, 5 insertions, 1 deletions
diff --git a/controls.wren b/controls.wren
index 3804020..e8d9d81 100644
--- a/controls.wren
+++ b/controls.wren
@@ -5,7 +5,11 @@ class Controls {
}
- static detect(keyCode) {
+ static isKeyDown(keyCode) {
return Keyboard.isKeyDown(keyCode)
}
+
+ static justPressed(keyCode) {
+ return Keyboard[keyCode].justPressed
+ }
} \ No newline at end of file