> ## 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

Obtient le périphérique associé à un IGameInputReading.

## Syntaxe

```cpp theme={null}
void GetDevice(
    IGameInputDevice** device
);
```

### Paramètres

*device*   \_Outptr\_\
Type : IGameInputDevice\*\*

Le périphérique associé à l'IGameInputReading

### Valeur de retour

Type : void

## Remarques

Utilisez cette méthode pour obtenir des informations sur la composition d'un périphérique et ses capacités. Par exemple, vous pourriez avoir besoin de connaître le nombre de boutons, de tableaux et d'axes du périphérique. Cela sera important lorsque vous devrez passer des mémoires tampons de taille appropriée aux nombreuses fonctions Get\*State, comme [IGameInputReading::GetGamepadState](/fr-CA/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getgamepadstate), qui nécessitent une mémoire tampon créée par le développeur.

## Configuration requise

**En-tête :** GameInput.h

[Vue d'ensemble de l'API d'entrée](/fr-CA/build/core-features/common/input/overviews/input-overview)\
[IGameInputReading](/fr-CA/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)\
[IGameInputReading::GetGamepadState](/fr-CA/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getgamepadstate)

## Historique des versions

| Version | Modifications |
| - | - |
| **v0** | Introduit. |


## Related topics

- [IGameInputReading](/fr-CA/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [IGameInputReading::GetRawReport](/fr-CA/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getrawreport.md)
- [IGameInput::GetNextReading](/fr-CA/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getnextreading.md)
- [IGameInput::GetPreviousReading](/fr-CA/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getpreviousreading.md)
- [IGameInputReading::GetKeyState](/fr-CA/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate.md)
