Skip to main content

IGameInputRawDeviceReport::SetRawData

Sets the contents of the report buffer.

Syntax

Parameters

bufferSize   _In_
Type: size_t
Size of the raw data buffer to be set. buffer   _In_reads_(bufferSize)
Type: void*
Buffer to be written to.

Return value

Type: bool Returns true on success; returns false otherwise.

Remarks

The IGameInputRawDeviceReport::SetRawData method allows applications to set the report buffer contents directly. The caller must pass a source buffer whose size matches the value returned from the GetRawDataSize method. Setting the report buffer contents is allowed only for output reports.

Requirements

Header: GameInput.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles Advanced GameInput topics
Overview of GameInput
IGameInputRawDeviceReport

Version History

Last modified on August 31, 2026