> ## 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::GetFirmwareVersion

> 入力デバイスのファームウェア バージョンを取得します。

入力デバイスのファームウェア バージョンを取得します。

## 構文

```cpp theme={null}
void GetFirmwareVersion(
    GameInputVersion* version
);
```

### パラメーター

*version*   \_Out\_\
型: [GameInputVersion](https://docs.xbox.com/ja-jp/reference/input/gameinput/structs/gameinputversion.md)\*

デバイスのファームウェア バージョンを受け取ります。

### 戻り値

型: void

## 解説

すべてのデバイスがファームウェア バージョンを報告するわけではありません。デバイスがファームウェア バージョンを報告しない場合、*version* のすべてのメンバーは 0 に設定されます。

ファームウェア バージョンはデバイスの接続時に読み取られ、デバイス オブジェクトの有効期間中は変化しません。

GameInput v3 以前では、この情報は [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md) から返される [GameInputDeviceInfo](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) 構造体の `firmwareVersion` メンバーから取得できました。

## 要件

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

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

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

## 関連項目

[GameInput の概要](https://docs.xbox.com/ja-jp/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDevice](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)\
[GameInputVersion](https://docs.xbox.com/ja-jp/reference/input/gameinput/structs/gameinputversion.md)\
[IGameInputDevice::GetHardwareVersion](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_gethardwareversion.md)

## バージョン履歴

| バージョン | 変更内容 |
| - | - |
| **v4** | 導入されました。 |


## Related topics

- [IGameInputDevice::GetHardwareVersion](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_gethardwareversion.md)
- [GameInputVersion](https://docs.xbox.com/ja-jp/reference/input/gameinput/structs/gameinputversion.md)
- [IGameInputDevice::GetRevisionNumber](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getrevisionnumber.md)
- [IGameInputDevice::GetDeviceFamily](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdevicefamily.md)
- [IGameInputDevice::GetDeviceId](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceid.md)
