GameInputMouseState

描述鼠标的状态。

语法

typedef struct GameInputMouseState {  
    GameInputMouseButtons buttons;  
    int64_t positionX;  
    int64_t positionY;  
    int64_t wheelX;  
    int64_t wheelY;  
} GameInputMouseState  

成员

buttons
类型:GameInputMouseButtons

鼠标按钮的状态。

positionX
类型:int64_t

鼠标位置的累积 x 轴变化。

positionY
类型:int64_t

鼠标位置的累积 y 轴变化。

wheelX
类型:int64_t

x 轴滚轮的累积变化。

wheelY
类型:int64_t

y 轴滚轮的累积变化。

备注

此结构由 IGameInputReading::GetMouseState 方法使用。

鼠标和滚轮的移动未报告为绝对位置。 通过从前一个读数中减去当前读数中的值来计算增量。

有关详细信息,请参阅 GameInput 读数

要求

头文件:GameInput.h

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

GameInput 概述
GameInput