Constructor
new EventGamepad($type, $code, $vibration)
- Description:
- Creates a new gamepad event.
- Source:
Example
const event = new EventGamepad(type, code, vibration);
Parameters:
Name | Type | Description |
---|---|---|
$type |
'gamepadvibrate' | The event type. |
$code |
string | The event code. |
$vibration |
Vibration | 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.