> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputReading::GetDevice

> IGameInputReading::GetDevice

# IGameInputReading::GetDevice

Gets the device associated with an IGameInputReading.

## Syntax

```cpp theme={null}
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 its 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](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getgamepadstate) which require a developer created buffer.

## Requirements

**Header:** GameInput.h

[Input API Overview](/build/core-features/common/input/overviews/input-overview)\
[IGameInputReading](/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)\
[IGameInputReading::GetGamepadState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getgamepadstate)

## Version History

| Version | Changes     |
| ------- | ----------- |
| **v0**  | Introduced. |


## Related topics

- [IGameInputReading](/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [IGameInputReading::GetMouseState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getmousestate.md)
- [IGameInput::GetNextReading](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getnextreading.md)
- [IGameInputReading::GetSequenceNumber](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getsequencenumber.md)
- [IGameInputReading::GetRawReport](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getrawreport.md)
