Class GamepadEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events Window.Gamepadconnected and Window.Gamepaddisconnected are fired in response to.
[Value("GamepadEvent")]
public class GamepadEvent : Event
- Inheritance
-
GamepadEvent
- Inherited Members
Remarks
Constructors
GamepadEvent()
public GamepadEvent()
GamepadEvent(string, GamepadEventInit)
The GamepadEvent() constructor creates a new GamepadEvent object.
public GamepadEvent(string type, GamepadEventInit eventInitDict)
Parameters
typestringeventInitDictGamepadEventInit
Remarks
Properties
Gamepad
The GamepadEvent.gamepad property of the
GamepadEvent interface returns a Gamepad
object, providing access to the associated gamepad data for fired
Window.Gamepadconnected and Window.Gamepaddisconnected events.
[Value("gamepad")]
public Gamepad Gamepad { get; }