aboutsummaryrefslogtreecommitdiff
path: root/controls.wren
diff options
context:
space:
mode:
authorIndrajith K L2021-08-02 17:10:03 +0530
committerIndrajith K L2021-08-02 17:10:03 +0530
commitf2e4f563661e5203f0531e37110d060b20b2f04c (patch)
tree5d393d164896b9272dbfd85ec9cbbf24ef9c9769 /controls.wren
parent7d988900e2f73992fea504419d61d4cdf759fedf (diff)
downloadrebirth-wren-f2e4f563661e5203f0531e37110d060b20b2f04c.tar.gz
rebirth-wren-f2e4f563661e5203f0531e37110d060b20b2f04c.tar.bz2
rebirth-wren-f2e4f563661e5203f0531e37110d060b20b2f04c.zip
* Adds Music Management
* Code Refactoring * Adds Fonts
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