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

# IGameInputDevice::GetSupportedSystemButtons

> 取得輸入裝置上可用的系統按鈕。

取得輸入裝置上可用的系統按鈕。

## 語法

```cpp theme={null}
GameInputSystemButtons GetSupportedSystemButtons();
```

### 參數

此方法沒有參數。

### 傳回值

類型：[GameInputSystemButtons](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputsystembuttons.md)

`GameInputSystemButtons` 旗標的組合，描述裝置上的系統按鈕，例如 `GameInputSystemButtonGuide` 和 `GameInputSystemButtonShare`。如果裝置沒有系統按鈕，則傳回 `GameInputSystemButtonNone`。

## 備註

系統按鈕是通常用來控制系統而非遊戲的按鈕，例如 XBOX 控制器上的 Guide 按鈕。在 GameInput v4 中，系統按鈕是一般的輸入類型 (`GameInputKindSystemButton`)。來自具有系統按鈕之裝置的讀數會包含這些按鈕的狀態，您可以呼叫 [IGameInputReading::GetSystemButtonState](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getsystembuttonstate.md) 加以擷取。

支援的系統按鈕集合在裝置物件的存留期間內不會變更。

在 GameInput v3 及更早版本中，此資訊可從 [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md) 所傳回 [GameInputDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) 結構的 `supportedSystemButtons` 成員取得。

## 需求

**標頭：** GameInput.h

**程式庫：** gameinput.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[GameInput 概觀](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDevice](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)\
[GameInputSystemButtons](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputsystembuttons.md)\
[IGameInputReading::GetSystemButtonState](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getsystembuttonstate.md)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v4** | 已推出。 |


## Related topics

- [GameInputSystemButtons](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputsystembuttons.md)
- [IGameInputReading::GetSystemButtonState](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getsystembuttonstate.md)
- [IGameInputDevice::GetSupportedLightingGroups](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedlightinggroups.md)
- [IGameInputDevice::GetMouseInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getmouseinfo.md)
- [IGameInputDevice::GetControllerButtonCount](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getcontrollerbuttoncount.md)
