Key Class

Module: Input

Key is used by Keyboard, Mouse, etc, to represent a key state.

Constructor

Key

()

Item Index

Methods

Attributes

Methods

reset

()

Reset key to default values.

set

()

Set this key attributes manually.

update

()

Update Key status based on new key state.

Properties

justPressed

Boolean

Indicates if this key was just pressed.

Default: false

justReleased

Boolean

Indicates if this key was just released.

Default: false

pressed

Boolean

Indicates if this key is currently pressed.

Default: false

Attributes

DOWN

Number

Down

RESET

Number

Reset

UP

Number

Up