Class: Keyboard

Keyboard()

new Keyboard()

Represents the state of specific keyboard keys.
Source:

Members

D :boolean

Indicates if the "D" key is pressed.
Type:
  • boolean
Source:

DOWN :boolean

Indicates if the down arrow key is pressed.
Type:
  • boolean
Source:

LEFT :boolean

Indicates if the left arrow key is pressed.
Type:
  • boolean
Source:
Indicates if the right arrow key is pressed.
Type:
  • boolean
Source:

SPACE :boolean

Indicates if the space bar is pressed.
Type:
  • boolean
Source:

UP :boolean

Indicates if the up arrow key is pressed.
Type:
  • boolean
Source: