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

# GameInputGuidButtonCallback

> GameInputGuidButtonCallback

# GameInputGuidButtonCallback

<Warning>**Preterido.** Este tipo de retorno de chamada foi removido no GameInput v1 e não está disponível na API atual. Em vez disso, use [GameInputSystemButtonCallback](/pt-BR/reference/input/gameinput/functions/gameinputsystembuttoncallback).</Warning>

Tipo de função de retorno de chamada para notificações de pressionamento e liberação do botão Guia (XBOX).

## Sintaxe

```cpp theme={null}
typedef void GameInputGuidButtonCallback(
    GameInputCallbackToken callbackToken,
    void* context,
    IGameInputDevice* sender,
    uint64_t timestamp,
    bool isPressed
);
```

### Parâmetros

*callbackToken*\
Tipo: GameInputCallbackToken

O token que identifica o retorno de chamada registrado.

*context*\
Tipo: void\*

O valor de contexto definido pelo título que foi fornecido ao registrar o retorno de chamada.

*sender*\
Tipo: IGameInputDevice\*

O dispositivo que disparou o retorno de chamada. Pode ser `nullptr` se não for específico de um dispositivo.

*timestamp*\
Tipo: uint64\_t

O momento (em microssegundos) em que ocorreu o evento do botão Guia.

*isPressed*\
Tipo: bool

`true` se o botão Guia foi pressionado; `false` se foi liberado.

## Comentários

Este tipo de retorno de chamada era registrado por meio de [IGameInput::RegisterGuideButtonCallback](/pt-BR/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerguidebuttoncallback). Ambos foram removidos na v1 e substituídos por [GameInputSystemButtonCallback](/pt-BR/reference/input/gameinput/functions/gameinputsystembuttoncallback), registrado por meio de [IGameInput::RegisterSystemButtonCallback](/pt-BR/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback), que também abrange o botão Compartilhar.

## Histórico de versões

| Versão | Alterações |
| - | - |
| **v1** | Removido. Substituído por [GameInputSystemButtonCallback](/pt-BR/reference/input/gameinput/functions/gameinputsystembuttoncallback). |
| **v0** | Introduzido. |

## Confira também

[Membros preteridos da API GameInput](/pt-BR/reference/input/gameinput/deprecated/gameinput_deprecated_members)
[IGameInput::RegisterGuideButtonCallback](/pt-BR/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerguidebuttoncallback)
[GameInputSystemButtonCallback](/pt-BR/reference/input/gameinput/functions/gameinputsystembuttoncallback)


## Related topics

- [GameInputGuidButtonCallback](/reference/input/gameinput/deprecated/functions/gameinputguidebuttoncallback.md)
- [IGameInput::RegisterGuideButtonCallback](/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerguidebuttoncallback.md)
