Multiple mice on OS X

后端 未结 6 2064
清歌不尽
清歌不尽 2021-02-01 20:51

I am developing an OS X application that is supposed to take input from two mice. I want to read the motion of each mouse independently. What would be the best way to do this?

6条回答
  •  逝去的感伤
    2021-02-01 21:34

    Unless you can force one of the mice to not be dealt with as a mouse, both will continue to control the pointer. However, you can use IOKit to write a custom USB HID driver to allow your app to read from one or both of the mice (although this would probably interfere with using them as normal mice). Building Customized User Client Drivers for USB Devices would be a good place to start for how to interact directly with USB mice.

提交回复
热议问题