gameInput
An export for getting user keyboard input
Arguments
Object, contains input (string) and key (object)
input - A string containing the pressed key
key - An object containing booleans of non-printable keys pressed state (key.leftArrow, key.rightArrow, key.upArrow, key.downArrow, key.return, key.escape, key.ctrl, key.shift, key.tab, key.backspace, key.delete, key.pageDown, key.pageUp, key.meta)
Returns
-
Last updated