Share via


GameInputReadingCallback (v1)

Title defined callback for the new reading arrived event.

Syntax

void GameInputReadingCallback(
    GameInputCallbackToken callbackToken,
    void* context,
    IGameInputReading* reading
);

Parameters

callbackToken   _In_
Type: GameInputCallbackToken

The callback token identifying the callback. Token returned by IGameInput::RegisterReadingCallback.

context   _In_
Type: void*

Title defined context.

reading   _In_
Type: IGameInputReading*

The new reading.

Return value

Type: void

Remarks

This function's definition is determined by the developer, but the parameters of that function must match in order for the callback to occur. This function is used to define the GameInput reading callback registered with IGameInput::RegisterReadingCallback. It will define the function that is called whenever a desired reading is received from an input device.

Requirements

Header: GameInput.h

Library: gameinput.lib

Supported platforms: Windows

See also

Input API Overview GameInput IGameInput::RegisterReadingCallback