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

# IGameInput::RegisterKeyboardLayoutCallback

> IGameInput::RegisterKeyboardLayoutCallback

# IGameInput::RegisterKeyboardLayoutCallback

Inscrit une fonction de rappel appelée lorsqu'une disposition de clavier est modifiée.

## Syntaxe

```cpp theme={null}
HRESULT RegisterKeyboardLayoutCallback(
    IGameInputDevice* device,
    void* context,
    GameInputKeyboardLayoutCallback callbackFunc,
    GameInputCallbackToken* callbackToken
);
```

### Paramètres

*device*   \_In\_opt\_\
Type : IGameInputDevice\*

Limite éventuellement le déclenchement du rappel inscrit à un périphérique spécifique.

*context*   \_In\_opt\_\
Type : void\*

Objet qui fournit des informations pertinentes pour la fonction de rappel. Il s'agit généralement de l'objet appelant.

*callbackFunc*   \_In\_\
Type : [GameInputKeyboardLayoutCallback](/fr/reference/input/gameinput/functions/gameinputkeyboardlayoutcallback)

Fonction de rappel définie par le titre, appelée lorsque la disposition du clavier est modifiée.

*callbackToken*   \_Result\_zeroonfailure\_\
Type : GameInputCallbackToken\*

Jeton identifiant la fonction de rappel inscrite. Ce jeton permet d'identifier la fonction inscrite si vous devez annuler ou désinscrire la fonction de rappel.

### Valeur de retour

Type : HRESULT

Résultat de la fonction.

## Remarques

La méthode `RegisterKeyboardLayoutCallback` inscrit une fonction de rappel appelée lorsqu'une disposition de clavier est modifiée. Pour plus d'informations, consultez les méthodes [IGameInput::UnregisterCallback](/fr/reference/input/gameinput/interfaces/igameinput/methods/igameinput_unregistercallback) et [IGameInput::StopCallback](/fr/reference/input/gameinput/interfaces/igameinput/methods/igameinput_stopcallback). Pour les cas d'utilisation intermédiaires et avancés de l'API GameInput, consultez [Rubriques avancées sur GameInput](/fr/build/core-features/common/input/advanced/input-advanced-topics).

## Configuration requise

La méthode `RegisterKeyboardLayoutCallback` inscrit une fonction de rappel appelée lorsqu'une disposition de clavier est modifiée. Pour plus d'informations, consultez les méthodes [IGameInput::UnregisterCallback](/fr/reference/input/gameinput/interfaces/igameinput/methods/igameinput_unregistercallback) et [IGameInput::StopCallback](/fr/reference/input/gameinput/interfaces/igameinput/methods/igameinput_stopcallback). Pour les cas d'utilisation intermédiaires et avancés de l'API GameInput, consultez [Rubriques avancées sur GameInput](/fr/build/core-features/common/input/advanced/input-advanced-topics).

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

[Vue d'ensemble de GameInput](/fr/build/core-features/common/input/overviews/input-overview)\
[IGameInput](/fr/reference/input/gameinput/interfaces/igameinput/igameinput)

## Historique des versions

| Version | Modifications |
| - | - |
| **v0** | Introduite. |


## Related topics

- [IGameInput::RegisterKeyboardLayoutCallback](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerkeyboardlayoutcallback.md)
- [GameInputKeyboardLayoutCallback](/reference/input/gameinput/functions/gameinputkeyboardlayoutcallback.md)
- [IGameInput::RegisterDeviceCallback](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md)
- [IGameInput::RegisterReadingCallback](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerreadingcallback.md)
