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

# GameInputSystemButtonCallback

> GameInputSystemButtonCallback

# GameInputSystemButtonCallback

Guide 또는 Share 버튼이 눌리거나 놓일 때 호출되는 타이틀 정의 콜백입니다.

## 구문

```cpp theme={null}
void GameInputSystemButtonCallback(
    GameInputCallbackToken callbackToken,
    void* context,
    IGameInputDevice* device,
    uint64_t timestamp,
    GameInputSystemButtons currentButtons,
    GameInputSystemButtons previousButtons
);
```

### 매개변수

*callbackToken*   \_In\_\
형식: GameInputCallbackToken

[IGameInput::RegisterSystemButtonCallback](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md)에서 반환된 콜백 토큰입니다.

*context*   \_In\_\
형식: void\*

[IGameInput::RegisterSystemButtonCallback](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md)에 전달된 타이틀 정의 컨텍스트입니다.

*device*   \_In\_\
형식: IGameInputDevice\*

이벤트를 트리거한 장치입니다.

*timestamp*   \_In\_\
형식: uint64\_t

이벤트와 관련된 마이크로초 타임스탬프입니다.

*currentButtons*   \_In\_\
형식: GameInputSystemButtons

현재 눌려 있는 시스템 버튼의 집합입니다.

*previousButtons*   \_In\_\
형식: GameInputSystemButtons

이번 변경 전에 눌려 있었던 시스템 버튼의 집합입니다.

### 반환값

형식: void

## 설명

`GameInputSystemButtonCallback` 함수는 Guide 또는 Share 버튼(누름 또는 놓음) 이벤트에 대한 타이틀 정의 콜백입니다. [IGameInput::RegisterSystemButtonCallback](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md) 메서드에 등록됩니다. 이 함수는 등록 메서드에 설정된 조건에 의해 트리거됩니다. 자세한 내용은 [IGameInput::RegisterSystemButtonCallback](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md)을 참조하세요.

## 요구 사항

**헤더:** GameInput.h

[GameInput 개요](https://docs.xbox.com/ko/build/core-features/common/input/overviews/input-overview.md)\
[GameInput](https://docs.xbox.com/ko/reference/input/gameinput/gameinput_members.md)

## 버전 기록

| 버전 | 변경 사항 |
| - | - |
| **v1** | `currentState` 및 `previousState` 매개변수의 이름을 `currentButtons` 및 `previousButtons`로 변경. |
| **v0** | 도입됨. |


## Related topics

- [GameInputGuidButtonCallback (사용되지 않음)](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/functions/gameinputguidebuttoncallback.md)
- [IGameInput::RegisterGuideButtonCallback (사용되지 않음)](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerguidebuttoncallback.md)
- [RegisterSystemButtonCallback](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registersystembuttoncallback.md)
- [GameInput API 멤버](https://docs.xbox.com/ko/reference/input/gameinput/gameinput_members.md)
- [사용되지 않는 GameInput API 멤버](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
