1.金环蛇XY轴是鼠标qq手势达人源码什么意思
2.如何获取鼠标所在位置的xy坐标?
金环蛇XY轴是什么意思
就是横向移动和竖向移动的意思,在不调节鼠标的灵敏度的情况下,X轴调节就是你可以对横移速度进行改变而不影响竖向移动的速度,Y轴反之
这种调节对应的是一些对鼠标有特殊要求的玩家,普通玩家直接调节灵敏度就好
这就是雷蛇鼠标的强大
如何获取鼠标所在位置的xy坐标?
鼠标在窗体里面?
那么就是Cursor属性 这个是个Cursor类 然后用Position属性.
如果不是
可以用winApi
GetCursorPos Function
这样.Point p = new Point();
GetCursorPos(p);
p.x横坐标,p.y纵坐标.
--------------------------------------------------------------------------------
The GetCursorPos function retrieves the cursor's position, in screen coordinates.
Syntax
BOOL GetCursorPos( LPPOINT lpPoint
);
Parameters
lpPoint
[out] Pointer to a POINT structure that receives the screen coordinates of the cursor.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
The cursor position is always specified in screen coordinates and is not affected by the mapping mode of the window that contains the cursor.
The calling process must have WINSTA_READATTRIBUTES access to the window station.