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

# XFrontPanelGetButtonStates

> XFrontPanelGetButtonStates

# XFrontPanelGetButtonStates

フロント パネル ボタンの状態を取得します。

## 構文

```cpp theme={null}
HRESULT XFrontPanelGetButtonStates(  
         XFrontPanelButton* buttons  
)  
```

### パラメーター

*buttons*   \_Out\_\
Type: [XFrontPanelButton](https://docs.xbox.com/ja-jp/reference/devkit/xfrontpaneldisplay/enums/xfrontpanelbutton.md)\*

フロント パネル ボタンの現在の状態を示す値へのポインター。

### 戻り値

Type: HRESULT

成功した場合は `S_OK` を返します。それ以外の場合はエラー コードを返します。

## 解説

XBOX One X Dev Kitのフロント パネルには、プログラム可能な 5 つのボタンと、5 方向 D-pad として機能する方向ボタンが含まれています。

![XBOX One X のフロント パネル ディスプレイ](https://mintcdn.com/microsoft-4404708b/-_0FrcE2bDxzGxv-/images/gdk/reference/front_panel_display_small.png?fit=max\&auto=format\&n=-_0FrcE2bDxzGxv-\&q=85\&s=8c81bf256714cec6526e83a4cbac5538)

*buttons* パラメーターは、各ボタンの状態を示す [XFrontPanelButton](https://docs.xbox.com/ja-jp/reference/devkit/xfrontpaneldisplay/enums/xfrontpanelbutton.md) オブジェクトを指します。

詳細については、[XBOX One X: フロント パネル ディスプレイの使用 (NDA トピック)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/dev-kits/concepts/scorpio-frontpanel) を参照してください。

## 要件

**ヘッダー:** xfrontpaneldisplay.h

**ライブラリ:** xfrontpaneldisplay.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[XFrontPanelDisplay](https://docs.xbox.com/ja-jp/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)


## Related topics

- [XFrontPanelButton](https://docs.xbox.com/ja-jp/reference/devkit/xfrontpaneldisplay/enums/xfrontpanelbutton.md)
- [XFrontPanelDisplay (API の内容)](https://docs.xbox.com/ja-jp/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelGetLightStates](https://docs.xbox.com/ja-jp/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetlightstates.md)
- [XFrontPanelLight](https://docs.xbox.com/ja-jp/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight.md)
- [XFrontPanelSetLightStates](https://docs.xbox.com/ja-jp/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelsetlightstates.md)
