IGameInputReading::GetDevice
Gets the device associated with an IGameInputReading.
Syntax
void GetDevice(
IGameInputDevice** device
)
Parameters
device _Outptr_
Type: IGameInputDevice**
The device associated with the IGameInputReading
Return value
Type: void
Remarks
Use this method to gain information about the makes of a device and it's capabilities. For example you may need to know the number of buttons, arrays, and axis on the device. This will be important when you need to pass in buffers of an appropriate size for the many Get*State functions like IGameInputReading::GetGamepadState which require a developer created buffer.
Requirements
Header: GameInput.h
Library: xgameruntime.lib
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles
See also
Input API Overview
IGameInputReading
IGameInputReading::GetGamepadState