介绍鼠标的属性。
语法
struct GameInputMouseInfo
{
GameInputMouseButtons supportedButtons;
uint32_t sampleRate;
bool hasWheelX;
bool hasWheelY;
};
成员
supportedButtons 类型:GameInputMouseButtons
鼠标所支持的按钮。
sampleRate 类型:uint32_t
每秒对鼠标移动进行采样的次数。
hasWheelX 类型:bool
指示鼠标是否具有 X 轴滚轮。
hasWheelY 类型:bool
指示鼠标是否具有 Y 轴滚轮。
备注
此结构在 GameInputDeviceInfo 结构中使用。
GameInputDeviceInfo
由 IGameInputDevice::GetDeviceInfo 方法使用。
有关详细信息,请参阅 GameInput 设备。
要求
头文件:GameInput.h
支持的平台: 窗户