IGameController 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 IGameController
struct winrt::Windows::Gaming::Input::IGameController
public interface IGameController
Public Interface IGameController
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Headset Headset Headset Headset Headset

The audio headset attached to the controller.

IsWireless IsWireless IsWireless IsWireless IsWireless

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

User User User User User

The user associated with the controller.

Events

HeadsetConnected HeadsetConnected HeadsetConnected HeadsetConnected HeadsetConnected

Signals when a headset is attached to the controller.

HeadsetDisconnected HeadsetDisconnected HeadsetDisconnected HeadsetDisconnected HeadsetDisconnected

Signals when a headset is disconnected from the controller.

UserChanged UserChanged UserChanged UserChanged UserChanged

Signals when the user associated with the controller has changed.