Share via


IGameInputDevice::CreateRawDeviceReport

Creates a new buffer represented by an IGameInputRawDeviceReport instance.

Syntax

HRESULT CreateRawDeviceReport(
    uint32_t reportId,
    GameInputRawDeviceReportKind reportKind,
    IGameInputRawDeviceReport** report
)

Parameters

reportId   _In_
Type: uint32_t

Device-defined ID for the created InputRawDeviceReport interface.

reportKind   _In_
Type: GameInputRawDeviceReportKind

Defines the type of raw device report to create. The GameInputRawDeviceReportKind enumeration only accepts the values of the GameInputRawFeatureReport and GameInputRawOutputReport constants.

report   _COM_Outptr_
Type: IGameInputRawDeviceReport**

The resulting IGameInputRawDeviceReport instance.

Return value

Type: HRESULT

Function result.

Remarks

The CreateRawDeviceReport method creates a buffer that is used to send raw information to the device. It is represented by the IGameInputRawDeviceReport instance. For intermediate and advanced use-cases of the GameInput API, see Advanced GameInput topics.

Requirements

Header: GameInput.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

Overview of GameInput
IGameInputDevice