API Docs for: 0.2.0
Show:

Quintus.Input Class

Quintus Input Module

Item Index

Properties

Methods

Q.canvasToStageX

(
  • x
  • stage
)
Integer

Convert a canvas point to a stage point, x dimension

Parameters:

Returns:

Integer:

x

Q.canvasToStageY

(
  • y
  • stage
)
Integer

Convert a canvas point to a stage point, y dimension

Parameters:

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.input

Q.InputSystem

Instance of the input subsytem that is actually used during gameplay

Q.inputs

Object

Current state of bound inputs