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

# GetDevice

> IGameInputReading::GetDevice

# IGameInputReading::GetDevice

Obtient l'appareil associé à un IGameInputReading.

## Syntaxe

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

### Paramètres

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

Appareil associé à l'IGameInputReading

### Valeur de retour

Type : void

## Remarques

Utilisez cette méthode pour obtenir des informations sur la marque d'un appareil et ses fonctionnalités. Par exemple, vous pouvez avoir besoin de connaître le nombre de boutons, de tableaux et d'axes de l'appareil. Cela est important lorsque vous devez transmettre des mémoires tampons de taille appropriée aux nombreuses fonctions Get\*State, comme [IGameInputReading::GetGamepadState](/fr/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 Input](/fr/build/core-features/common/input/overviews/input-overview)\
[IGameInputReading](/fr/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)\
[IGameInputReading::GetGamepadState](/fr/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getgamepadstate)

## Historique des versions

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


## Related topics

- [GetDevice](/fr/reference/graphics/d3d12/interfaces/id3d12devicechild/methods/id3d12devicechild_getdevice_public.md)
- [IGameInputRawDeviceReport::GetDevice](/fr/reference/input/gameinput/interfaces/igameinputrawdevicereport/methods/igameinputrawdevicereport_getdevice.md)
- [PartyNetwork::GetDevices](/fr/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getdevices.md)
- [PartyEndpoint::GetDevice](/fr/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getdevice.md)
- [PartyChatControl::GetDevice](/fr/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getdevice.md)
