IGameController
IGameController
IGameController
IGameController
Interface
Definition
The core interface required to be implemented by all controller devices, regardless of their actual type (gamepad, racing wheel, flight stick, and so on). This interface exists mainly to support extensibility for game controllers, which allows OEMs (Original Equipment Manufacturers) to publish WinRT (Windows Runtime) classes that provide rich access to their device's features, while integrating into the underlying game controller device enumeration framework.
public : interface IGameControllerpublic interface IGameControllerPublic Interface IGameController// You can use this interface in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
IsWireless IsWireless IsWireless IsWireless
Gets a value that indicates the wireless state of the gamepad.
public : PlatForm::Boolean IsWireless { get; }public bool IsWireless { get; }Public ReadOnly Property IsWireless As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if the gamepad is wireless. Otherwise, false.
Events
HeadsetConnected HeadsetConnected HeadsetConnected HeadsetConnected
Signals when a headset is attached to the controller.
public : abstract event TypedEventHandler HeadsetConnected<IGameController, Headset>public abstract event TypedEventHandler HeadsetConnected<IGameController, Headset>Public MustInherit Event HeadsetConnected<IGameController, Headset>// You can use this event in JavaScript.
HeadsetDisconnected HeadsetDisconnected HeadsetDisconnected HeadsetDisconnected
Signals when a headset is disconnected from the controller.
public : abstract event TypedEventHandler HeadsetDisconnected<IGameController, Headset>public abstract event TypedEventHandler HeadsetDisconnected<IGameController, Headset>Public MustInherit Event HeadsetDisconnected<IGameController, Headset>// You can use this event in JavaScript.
UserChanged UserChanged UserChanged UserChanged
Signals when the user associated with the controller has changed.
public : abstract event TypedEventHandler UserChanged<IGameController, UserChangedEventArgs>public abstract event TypedEventHandler UserChanged<IGameController, UserChangedEventArgs>Public MustInherit Event UserChanged<IGameController, UserChangedEventArgs>// You can use this event in JavaScript.