Quintus.Input Class
Quintus Input Module
Item Index
Methods
Q.canvasToStageX
(
Integer
-
x
-
stage
Convert a canvas point to a stage point, x dimension
Parameters:
-
x
Float -
stage
Q.Stage
Returns:
Integer:
x
Q.canvasToStageY
(
Integer
-
y
-
stage
Convert a canvas point to a stage point, y dimension
Parameters:
-
y
Float -
stage
Q.Stage
Returns:
Integer:
y
Q.controls
(
-
joypad
Helper method to activate controls with default options
Parameters:
-
joypad
Boolean- enable 4-way joypad (true) or just left, right controls (false, undefined)
Properties
KEY_NAMES
Object
static
Provided key names mapped to key codes - add more names and key codes as necessary
Q.inputs
Object
Current state of bound inputs