ExtensionGamepad

ExtensionGamepad

Creates gamepad extensions.

Constructor

(protected) new ExtensionGamepad($deadzoneopt)

Description:
  • Creates a new gamepad extension.
Source:
Examples
// minimal
ExtensionGamepad.activate();
// full
ExtensionGamepad.activate(deadzone);
Parameters:
Name Type Attributes Description
$deadzone number <optional>
The deadzone of the gamepad axes (in [0, 1] range).

Members

(readonly) DEADZONE_GAMEPAD_AXES :number

Description:
  • Stores the deadzone of the gamepad axes (in [0, 1] range).
Source:
Stores the deadzone of the gamepad axes (in [0, 1] range).
Type:
  • number

Methods

(static) activate($deadzoneopt)

Description:
  • Activates the extension.
Source:
Parameters:
Name Type Attributes Description
$deadzone number <optional>
The deadzone of the gamepad axes (in [0, 1] range).