API Docs for: 0.0.2
Show:

Atlantis.Gamepad Class

Module: Framework
Parent Module: Atlantis

The gamepad class is responsible to manage gamepads connected to the device.

Constructor

Atlantis.Gamepad

()

Methods

@setEnabled

(
  • enabled
)

Gets the status of the component.

Parameters:

  • enabled Boolean

    Sets to true to enable

getState

() Atlantis.GamepadState

Gets the state of the gamepad

Returns:

Atlantis.GamepadState:

Return the state at this time.

initialize

()

Initialize the component and start event listeners

isEnabled

() Boolean

Gets the status of the component.

Returns:

Boolean:

The status of the component.

isInitialized

() Boolean

Flags used to determine if the initialization processes is done.

Returns:

update

(
  • gameTime
)

Update states of connected gamepads

Parameters: