Constructor
new EventGamepad($type, $code, $vibrationopt)
- Description:
- Creates a new gamepad event.
- Source:
Example
const event = new EventGamepad(type, code, vibration);
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
$type |
EVENT_TYPES.GAMEPAD.GAMEPAD_VIBRATE | The event type. | |
$code |
string | The event code. | |
$vibration |
Vibration |
<optional> |
The vibration. |
Members
code :string
- Description:
- Gets the event code.
- Source:
Gets the event code.
Type:
- string
vibration :Vibration
- Description:
- Gets the vibration.
- Source:
Gets the vibration.