Share via


HidGameControllerProvider Class

Definition

Represents the underlying device for a HID (Human Interface Device) game controller.

public ref class HidGameControllerProvider sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HidGameControllerProvider final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HidGameControllerProvider
Public NotInheritable Class HidGameControllerProvider
Inheritance
Object Platform::Object IInspectable HidGameControllerProvider
Attributes
Implements

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

This class provides functions for sending raw HID output reports, as well as reading and writing raw HID feature reports. These reports are in their original format—no parsing is done on them.

This class also exposes the HID page and usage of the TLC (top-level collection), so that you can interface correctly with each supported TLC.

Properties

FirmwareVersionInfo

The firmware version of the controller.

HardwareProductId

The hardware product ID of the controller.

HardwareVendorId

The hardware vendor ID of the controller.

HardwareVersionInfo

Contains information on the hardware version of the controller.

IsConnected

Boolean value indicating whether the controller is connected.

UsageId

The usage ID of the top-level collection.

UsagePage

The usage page of the top-level collection.

Methods

GetFeatureReport(Byte, Byte[])

Gets the specified HID (Human Interface Device) feature report from the controller.

SendFeatureReport(Byte, Byte[])

Sends the specified HID (Human Interface Device) feature report to the device.

SendOutputReport(Byte, Byte[])

Sends the specified HID (Human Interface Device) output report to the device.

Applies to

See also