> ## 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 (Deprecated)

> GameInputGuidButtonCallback

> [!WARNING]
>
> **Deprecated.** This callback type was removed in GameInput v1 and is not available in the current API. Use [GameInputSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/functions/gameinputsystembuttoncallback.md) instead.

Callback function type for Guide (XBOX) button press and release notifications.

## Syntax

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

### Parameters

*callbackToken*\
Type: GameInputCallbackToken

The token identifying the registered callback.

*context*\
Type: void\*

The title-defined context value that was supplied when registering the callback.

*sender*\
Type: IGameInputDevice\*

The device that triggered the callback. Can be `nullptr` if not device-specific.

*timestamp*\
Type: uint64\_t

The time (in microseconds) at which the Guide button event occurred.

*isPressed*\
Type: bool

`true` if the Guide button was pressed; `false` if released.

## Remarks

This callback type was registered via [IGameInput::RegisterGuideButtonCallback](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerguidebuttoncallback.md). Both were removed in v1 and replaced by [GameInputSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/functions/gameinputsystembuttoncallback.md) registered via [IGameInput::RegisterSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md), which also covers the Share button.

## Version History

| Version | Changes |
| - | - |
| **v1** | Removed. Replaced by [GameInputSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/functions/gameinputsystembuttoncallback.md). |
| **v0** | Introduced. |

## See also

[Deprecated GameInput API members](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
[IGameInput::RegisterGuideButtonCallback](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerguidebuttoncallback.md)
[GameInputSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/functions/gameinputsystembuttoncallback.md)


## Related topics

- [IGameInput::RegisterGuideButtonCallback (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerguidebuttoncallback.md)
- [GameInputUiNavigationButtons (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/enums/gameinputuinavigationbuttons.md)
- [GameInputControllerButtonInfo (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputcontrollerbuttoninfo.md)
- [GameInputSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/functions/gameinputsystembuttoncallback.md)
- [Deprecated GameInput API members](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
