Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You're going to want to check out the I/O Kit and HID (Human Interface Device) manager stuff.</p> <p>HID manager is part of <a href="http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingHardware/AH_Device_Access_IOKit/AH_Device_Access_IOKit.html#//apple_ref/doc/uid/TP30000378-BAJDAJDJ" rel="nofollow noreferrer">I/O Kit</a>, so looking into there might be useful. There are two APIs for HID management, the <a href="http://developer.apple.com/documentation/devicedrivers/conceptual/HID/intro/intro.html#//apple_ref/doc/uid/TP40000970-CH202-DontLinkElementID_6" rel="nofollow noreferrer">older API</a> is a bit more painful and then you have the new <a href="http://developer.apple.com/technotes/tn2007/tn2187.html" rel="nofollow noreferrer">10.5 and above API</a> which is a bit more comfortable.</p> <p>Important thing to understand is this isn't going to probably be just a quick fix, it may take some significant work to get it running. If you can assume you'll have 10.5 or better installed, using the Leopard API will definitely help.</p> <p>Also; depending on how you accomplish what you're doing, may be important for you to hide the mouse cursor as it may still move a lot even if you're receiving the information from both mice. If your application grabs the screen, I'd use CoreGraphics to disable the cursor and just draw my own.</p> <p>You might also consider finding a wrapper for one of these APIs, an example can be found in <a href="https://stackoverflow.com/questions/507044/direct-access-to-keyboard-events-in-osx">this question</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload