Syntax
Parameters
referenceReading   _In_Type: IGameInputReading* The current IGameInputReading. The returned
IGameInputReading interface is the next reading after this reference reading.
inputKind   _In_Type: GameInputKind Filter for the types of input to pull the next reading from. The
GameInputKind interface is a flag variable. You may combine multiple values to filter on multiple GameInputKind constants. When multiple input kinds are specified, any readings that contain at least one of the input kinds will be matched and returned.
device   _In_opt_Type: IGameInputDevice* Filter for the specific device to pull the next reading from. reading   _COM_Outptr_
Type: IGameInputReading** The returned
IGameInputReading interface that comes sequentially after the referenceReading input.
Return value
Type: HRESULT Function result.Remarks
TheGetNextReading and GetPreviousReading methods let apps walk through the input history reading by reading.
Returns a NULL value and failure HRESULT if there is no reading after the referenceReading, or if a device filter is provided for a disconnected device, or if too much time has elapsed and the reference reading and returned reading have left the input stream history buffer. The elapsed time error is rare for apps which continuously process input as the input stream maintains a half second of readings from each device in its history buffer.
The following code example demonstrates how to poll for all gamepad state from a specific device.
Requirements
Header: GameInput.h Overview of GameInputIGameInput_GetCurrentReading
IGameInput_GetPreviousReading
IGameInput
