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 class IGameController
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(464479522, 24420, 17093, 130, 103, 185, 254, 34, 21, 191, 189)]
struct IGameController
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(464479522, 24420, 17093, 130, 103, 185, 254, 34, 21, 191, 189)]
public interface IGameController
Public Interface IGameController
Derived
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Headset

The audio headset attached to the controller.

IsWireless

Gets a value that indicates the wireless state of the gamepad.

User

The user associated with the controller.

Events

HeadsetConnected

Signals when a headset is attached to the controller.

HeadsetDisconnected

Signals when a headset is disconnected from the controller.

UserChanged

Signals when the user associated with the controller has changed.

Applies to