HidGameControllerProvider.GetFeatureReport(Byte, Byte[]) Method

Definition

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

public:
 virtual void GetFeatureReport(byte reportId, Platform::Array <byte> ^ reportBuffer) = GetFeatureReport;
void GetFeatureReport(byte const& reportId, winrt::array_view <byte> & reportBuffer);
public void GetFeatureReport(byte reportId, byte[] reportBuffer);
function getFeatureReport(reportId, reportBuffer)
Public Sub GetFeatureReport (reportId As Byte, reportBuffer As Byte())

Parameters

reportId
Byte

byte

The ID of the report to get.

reportBuffer

Byte[]

byte[]

The buffer in which the report data is returned.

Remarks

When using this method for your own custom classes, make sure to pass in a valid report ID that is supported by your device; otherwise, the report buffer will be unchanged. Also make sure that your report buffer is the correct size for the type of report that you're requesting.

The report that you get from this method is the raw, unmodified version in its original format; no parsing is done on it.

Applies to