Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Title-defined callback for device connected and disconnected events. This function is registered with IGameInput::RegisterDeviceCallback. This function is triggered by the conditions set from the registration function.
Syntax
void GameInputDeviceCallback(
GameInputCallbackToken callbackToken,
void* context,
IGameInputDevice* device,
uint64_t timestamp,
GameInputDeviceStatus currentStatus,
GameInputDeviceStatus previousStatus
);
Parameters
callbackToken _In_
Type: GameInputCallbackToken
Callback token for the registered function. Token returned by IGameInput::RegisterDeviceCallback.
context _In_
Type: void*
The context passed to IGameInput::RegisterDeviceCallback.
device _In_
Type: IGameInputDevice*
Device which triggered the callback.
timestamp _In_
Type: uint64_t
Microsecond timestamp denoting when the status change occurred.
currentStatus _In_
Type: GameInputDeviceStatus
Current connection and input status of the device.
previousStatus _In_
Type: GameInputDeviceStatus
Previous connection and input status of the device.
Return value
Input API Overview
GameInput
IGameInput::RegisterDeviceCallback