EventGamepadDigital

EventGamepadDigital

Creates gamepad digital events.

Constructor

new EventGamepadDigital($type, $code)

Description:
  • Creates a new gamepad digital event.
Source:
Example
const event = new EventGamepadDigital(type, code);
Parameters:
Name Type Description
$type 'gamepadconnect' | 'gamepaddown' | 'gamepadup' | 'gamepadvibrate' The event type.
$code string The event code.

Members

code :string

Description:
  • Gets the event code.
Source:
Gets the event code.
Type:
  • string