From f2e4f563661e5203f0531e37110d060b20b2f04c Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 2 Aug 2021 17:10:03 +0530 Subject: * Adds Music Management * Code Refactoring * Adds Fonts --- controls.wren | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'controls.wren') 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 -- cgit v1.2.3