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 EVENT_TYPES.GAMEPAD.GAMEPAD_CONNECT | EVENT_TYPES.GAMEPAD.GAMEPAD_DOWN | EVENT_TYPES.GAMEPAD.GAMEPAD_UP | EVENT_TYPES.GAMEPAD.GAMEPAD_VIBRATE The event type.
$code string The event code.

Members

code :string

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