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

# GetDeviceStatus

> GetDeviceStatus

# GetDeviceStatus

入力デバイスの現在のステータスを取得します。

## 構文

```cpp theme={null}
GameInputDeviceStatus GetDeviceStatus();
```

### パラメーター

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

### 戻り値

型: [GameInputDeviceStatus](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputdevicestatus.md)

返される値は列挙型 `GameInputDeviceStatus` です。返される値は、[GameInputDeviceStatus](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputdevicestatus.md) の列挙型フラグ値の組み合わせになる場合があります。

## 解説

返される [GameInputDeviceStatus](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputdevicestatus.md) 列挙型は、デバイスが接続されているかどうか、およびゲームとデバイスの間で送受信される可能性がある入出力の種類を定義します。デバイスがシステムから切断された状態で `GetDeviceStatus` メソッドが呼び出されると、`GameInputDeviceNoStatus` 値が返されます。デバイスの状態の特定の変化に反応するために、`GameInputDeviceStatus` 列挙型を [RegisterDeviceCallback](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md) メソッドのフィルターとして使用できます。

## 要件

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

[GameInput の概要](https://docs.xbox.com/ja-jp/build/core-features/common/input/overviews/input-overview.md)\
[GameInputDeviceStatus](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputdevicestatus.md)\
[RegisterDeviceCallback](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md)\
[IGameInputDevice](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)

## バージョン履歴

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


## Related topics

- [GameInputDeviceStatus](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputdevicestatus.md)
- [Get Play Fab IDs From Nintendo Switch Device Ids](https://docs.xbox.com/api-reference/account-management/get-play-fab-ids-from-nintendo-switch-device-ids.md)
- [Report Device Info](https://docs.xbox.com/api-reference/analytics/report-device-info.md)
- [Unlink Android Device ID](https://docs.xbox.com/api-reference/account-management/unlink-android-device-id.md)
- [Unlink IOS Device ID](https://docs.xbox.com/api-reference/account-management/unlink-ios-device-id.md)
