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

# GameInputGuidButtonCallback (Preterido)

> 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](https://docs.xbox.com/pt-BR/reference/input/gameinput/functions/gameinputsystembuttoncallback.md).

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](https://docs.xbox.com/pt-BR/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerguidebuttoncallback.md). Ambos foram removidos na v1 e substituídos por [GameInputSystemButtonCallback](https://docs.xbox.com/pt-BR/reference/input/gameinput/functions/gameinputsystembuttoncallback.md), registrado por meio de [IGameInput::RegisterSystemButtonCallback](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md), que também abrange o botão Compartilhar.

## Histórico de versões

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

## Confira também

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


## Related topics

- [IGameInput::RegisterGuideButtonCallback (Preterido)](https://docs.xbox.com/pt-BR/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerguidebuttoncallback.md)
- [GameInputUiNavigationButtons (Preterido)](https://docs.xbox.com/pt-BR/reference/input/gameinput/deprecated/enums/gameinputuinavigationbuttons.md)
- [GameInputControllerButtonInfo (Preterido)](https://docs.xbox.com/pt-BR/reference/input/gameinput/deprecated/structs/gameinputcontrollerbuttoninfo.md)
- [GameInputSystemButtonCallback](https://docs.xbox.com/pt-BR/reference/input/gameinput/functions/gameinputsystembuttoncallback.md)
- [RegisterSystemButtonCallback](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md)
