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

# GetKeyCount

> IGameInputReading::GetKeyCount

# IGameInputReading::GetKeyCount

キーボード上でアクティブなキーの数を取得します。

## 構文

```cpp theme={null}
uint32_t GetKeyCount();
```

### パラメーター

このメソッドにはパラメーターはありません。

### 戻り値

型: uint32\_t

ゲーム コントローラー上でアクティブなキーの数を返します。

## 解説

`IGameInputReading::GetKeyCount` メソッドは、ゲーム コントローラー上でアクティブなキーの数を取得します。これは、[IGameInputReading::GetKeyState](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate.md) メソッドで必要となる配列の数を決定するために使用します。GameInput API の中級および上級のユース ケースについては、[GameInput の高度なトピック](https://docs.xbox.com/ja-jp/build/core-features/common/input/advanced/input-advanced-topics.md)を参照してください。

## 要件

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

[GameInput の概要](https://docs.xbox.com/ja-jp/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputReading](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)

## バージョン履歴

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


## Related topics

- [GetKeyState](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate.md)
- [PFLobbyGetLobbyPropertyKeys](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetlobbypropertykeys.md)
- [PFLobbyGetMemberPropertyKeys](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetmemberpropertykeys.md)
- [PFLobbyGetSearchPropertyKeys](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetsearchpropertykeys.md)
- [PFLobbyGetServerPropertyKeys](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetserverpropertykeys.md)
