Static variables
statickeys:Array<String> = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "space", "backspace", "tab", "enter", "shift", "control", "alt", "capslock", "win", "escape", "delete", "up", "down", "left", "right", "back", ",", ".", ":", ";", "<", "=", ">", "?", "!", "\"", "#", "$", "%", "&", "_", "(", ")", "*", "|", "{", "}", "[", "]", "~", "`", "/", "\\", "@", "+", "-", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12"]
Static methods
Constructor
Methods
down(key:String):Bool
Check if a key is currently pressed.
Parameters:
key | A String representing the physical keyboard key to check. |
---|
Returns:
Bool. Returns true or false depending on the keyboard state.
released(key:String):Bool
Check if a key has been released from being pressed down. Will only be run once until the key is pressed again and release again.
Parameters:
key | A String representing the physical keyboard key to check. |
---|
Returns:
Bool. Returns true or false depending on the keyboard state.