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

# IGameInput::RegisterGuideButtonCallback (Deprecated)

> IGameInput::RegisterGuideButtonCallback

> [!WARNING]
>
> **Deprecated.** This method was removed in GameInput v1 and is not available in the current API. Use [RegisterSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md) instead.

Registers a callback function to be called when the Guide button is pressed or released.

## Syntax

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

### Parameters

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

Limits the registered callback to a specific device.

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

Title-defined context passed to the callback function.

*callbackFunc*   \_In\_\
Type: [GameInputGuidButtonCallback](https://docs.xbox.com/reference/input/gameinput/deprecated/functions/gameinputguidebuttoncallback.md)\*

The title-defined callback function to register.

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

Token identifying the registered callback.

### Return value

Type: HRESULT

Function result.

## Remarks

This method was replaced by [RegisterSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md), which handles both Guide and Share button events through the [GameInputSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/functions/gameinputsystembuttoncallback.md) callback type.

## Version History

| Version | Changes |
| - | - |
| **v1** | Removed. Replaced by [RegisterSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md). |
| **v0** | Introduced. |

## See also

[Deprecated GameInput API members](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[IGameInput::RegisterSystemButtonCallback](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md)\
[GameInputGuidButtonCallback](https://docs.xbox.com/reference/input/gameinput/deprecated/functions/gameinputguidebuttoncallback.md)\
[IGameInput](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/igameinput.md)


## Related topics

- [GameInputGuidButtonCallback (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/functions/gameinputguidebuttoncallback.md)
- [IGameInput::RegisterDeviceCallback](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md)
- [IGameInput::RegisterReadingCallback](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerreadingcallback.md)
- [IGameInput::RegisterKeyboardLayoutCallback](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerkeyboardlayoutcallback.md)
- [Deprecated GameInput API members](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
