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

前端 未结 4 630
你的背包
你的背包 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:40

    If you are using the IOHIDDevice callbacks for the mouse you can use this to get a double value:

    double doubleValue = IOHIDValueGetScaledValue(inIOHIDValueRef, kIOHIDTransactionDirectionTypeOutput);
    

提交回复
热议问题