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

# GameInputSensorsInfo

> GameInputSensorsInfo

# GameInputSensorsInfo

描述感應器的屬性。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
struct GameInputSensorsInfo
{
    GameInputSensorsKind supportedSensors;
};
```

<a id="membersSection" />

### 成員

*supportedSensors*<br />
類型：[GameInputSensorsKind](/zh-TW/reference/input/gameinput/enums/gameinputsensorskind)

裝置支援的感應器。

<a id="remarksSection" />

## 備註

此結構用於 [GameInputDeviceInfo](/zh-TW/reference/input/gameinput/structs/gameinputdeviceinfo) 結構中。`GameInputDeviceInfo` 由
[IGameInputDevice::GetDeviceInfo](/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo)
方法使用。

如需詳細資訊，請參閱 [GameInput 裝置](/zh-TW/build/core-features/common/input/overviews/input-devices)。

<a id="requirementsSection" />

## 需求

**標頭：** GameInput.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 概念文件

* [GameInput 感應器建立](/zh-TW/build/core-features/common/input/hardware/input-hardware-sensors)

## 另請參閱

[GameInput 概觀](/zh-TW/build/core-features/common/input/overviews/input-overview)<br />
[GameInput](/zh-TW/reference/input/gameinput/gameinput_members)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v2** | v2 中推出的**新結構**，包含 `supportedSensors` (GameInputSensorsKind)。 |
| **v1** | 不存在。 |
| **v0** | 不存在。 |


## Related topics

- [GameInputSensorsInfo](/reference/input/gameinput/structs/gameinputsensorsinfo.md)
- [GameInputSensorsState](/reference/input/gameinput/structs/gameinputsensorsstate.md)
- [Sensors in GameInput](/build/core-features/common/input/hardware/input-hardware-sensors.md)
- [GameInputSensorsKind](/reference/input/gameinput/enums/gameinputsensorskind.md)
- [IGameInputReading::GetSensorsState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getsensorsstate.md)
