Class: Keyboard

Keyboard()

Represents the state of the keyboard keys.

Constructor

new Keyboard()

Source:

Members

D :boolean

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

DOUWN :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: