Properties
Private
#actions
#actions
: Map<string, Action> = ...
Accessors
mouseButtonsDown
- get mouseButtonsDown(): Set<number>
-
Returns Set<number>
mouseButtonsJustPressed
- get mouseButtonsJustPressed(): Set<number>
-
Returns Set<number>
scrollDelta
- get scrollDelta(): number
-
Returns number
scrollingDown
- get scrollingDown(): boolean
-
Returns boolean
scrollingUp
- get scrollingUp(): boolean
-
Returns boolean
Methods
addAction
- addAction(name: string, action: Action): void
-
Returns void
getVector
- getVector(negx: string, posx: string, negy: string, posy: string, scale: number): Vector2
-
Parameters
-
negx: string
-
posx: string
-
negy: string
-
posy: string
-
scale: number
isActionJustPressed
- isActionJustPressed(name: string): boolean
-
Returns boolean
isActionPressed
- isActionPressed(name: string): boolean
-
Returns boolean
isKeyDown
- isKeyDown(code: string): boolean
-
Returns boolean
isKeyJustPressed
- isKeyJustPressed(code: string): boolean
-
Returns boolean
isMouseDown
- isMouseDown(button?: number): boolean
-
Returns boolean
isMouseJustPressed
- isMouseJustPressed(button?: number): boolean
-
Returns boolean
update
- update(): void
-
Returns void