High resolution and high framerate mouse coordinates on OSX? (Or other solution?)

前端 未结 4 629
你的背包
你的背包 2021-01-02 18:02

I\'d like to get mouse movements in high resolution and high framerate on OSX.

\"High framerate\" = 60 fps or higher (preferably > 120)
\"High resolution\" = Sub

4条回答
  •  抹茶落季
    2021-01-02 18:47

    The possibility of subpixel coordinates exists because Mac OS X is designed to be resolution independent. A square of 2x2 hardware pixels on a screen could represent a single virtual pixel in software, allowing the cursor to be placed at (x + 0.5, y + 0.5).

    On any actual Mac using normal 1x scaling, you will never see subpixel coordinates because the mouse cursor cannot be moved to a fractional pixel position on the screen--the quantum of mouse movement is precisely 1 pixel.

提交回复
热议问题