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:
Methods
(static) activate($deadzoneopt)
- Description:
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
$deadzone |
number
|
<optional>
|
The deadzone of the gamepad axes (in [0, 1] range). |