参考运行速度注意事项一节,了解将鼠标坐标转换为网格其背后的思想。
Consult the "Speed considerations" section for the ideas behind transforming mouse coordinates into a grid.
本文介绍二键鼠标通信规程,鼠标坐标到显示坐标的映射关系,及鼠标设备的控制方法。
This paper introduces two key mouse communication protocol, mapping relation between mouse coordinate and display coordinate and the method of controlling mouse drive.
在函数 checkEvents中,鼠标坐标强制保存在 chunkSize 的正方形网格中。
In the checkEvents function, the stored mouse coordinates are forced into a grid of chunkSize by chunkSize squares.
应用推荐