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

# GameInputMouseInfo

> GameInputMouseInfo

# GameInputMouseInfo

描述滑鼠的屬性。

## 語法

```cpp theme={null}
struct GameInputMouseInfo
{
    GameInputMouseButtons supportedButtons;
    uint32_t              sampleRate;
    bool                  hasWheelX;
    bool                  hasWheelY;
};
```

### 成員

*supportedButtons*\

類型：[GameInputMouseButtons](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputmousebuttons.md)

滑鼠支援的按鈕。

*sampleRate*\

類型：uint32\_t

每秒取樣滑鼠移動的次數。

*hasWheelX*\

類型：bool

表示滑鼠是否有 X 軸的滾輪。

*hasWheelY*\

類型：bool

表示滑鼠是否有 Y 軸的滾輪。

## 備註

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

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

## 需求

**標頭：** GameInput.h

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

## 另請參閱

[GameInput 概觀](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-overview.md)\
[GameInput](https://docs.xbox.com/zh-TW/reference/input/gameinput/gameinput_members.md)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v1** | **已移除** `sensorDpi` (uint32\_t)。 |
| **v0** | 推出。 |

## 附錄：先前版本

### v0

```cpp theme={null}
struct GameInputMouseInfo
{
    GameInputMouseButtons supportedButtons;
    uint32_t              sampleRate;
    uint32_t              sensorDpi;
    bool                  hasWheelX;
    bool                  hasWheelY;
};
```


## Related topics

- [GameInputMouseButtons](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputmousebuttons.md)
- [GameInputDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputdeviceinfo.md)
- [GameInput API 成員](https://docs.xbox.com/zh-TW/reference/input/gameinput/gameinput_members.md)
- [GameInputMousePositions](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameInputmousepositions.md)
- [GameInputMouseState](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputmousestate.md)
