IGameInputRawDeviceReport::SetItemValue
Note
This function is not yet implemented.
Write an item value to the device report buffer.
Syntax
bool SetItemValue(
uint32_t itemIndex,
int64_t value
)
Parameters
itemIndex _In_
Type: uint32_t
Index for the report item within the device report buffer.
value _In_
Type: int64_t
Value to write to the report item.
Return value
Type: bool
Returns true on success; returns false otherwise.
Remarks
Valid indexes for report items are based on the itemCount member of GameInputRawDeviceReportInfo
Rarely, reports may contain items that are large byte arrays (indicated by the GameInputBufferedItem flag in the item's GameInputRawDeviceReportItemInfo structure). These items are not supported by the GetItemValue and SetItemValue methods, and can only be accessed via the full report buffer by using the GetRawData and SetRawData methods. Attempting to get or set the value of such items using the GetItemValue and SetItemValue methods results in an error HRESULT being returned.
The SetItemValue, ResetItemValue, and ResetAllItems methods can only be called for output and feature reports. All of these methods return very quickly, and are safe to call from any context.
Requirements
Header: GameInput.h
Library: xgameruntime.lib
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles