> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputReading::GetControllerButtonState

> IGameInputReading::GetControllerButtonState

# IGameInputReading::GetControllerButtonState

ゲーム コントローラーからボタンの状態情報を取得します。

## 構文

```cpp theme={null}
uint32_t GetControllerButtonState(
    uint32_t stateArrayCount,
    bool* stateArray
);
```

### パラメーター

*stateArrayCount*   \_In\_\
型: uint32\_t

ゲーム コントローラー上のボタン数の期待値です。
この数は [IGameInputReading::GetControllerButtonCount](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttoncount) を呼び出して取得できます。

[Input API の概要](/build/core-features/common/input/overviews/input-overview)\
[IGameInputReading](/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)

## バージョン履歴

| バージョン  | 変更点 |
| ------ | --- |
| **v0** | 導入。 |
