Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trackballs



John,
For Pather, when you access a HID device, there is the option to set the "seize" option, specifically, in the interface open call, pass in the kIOHIDOptionsTypeSeizeDevice argument as an option. For example, the call might be as follows.


kr = (*(IOHIDDeviceInterface **)trackball->interface)->open(trackball->interface, kIOHIDOptionsTypeSeizeDevice);

When the open call returns successfully, the device is all yours. The flip side, is that any events which are generated, are yours to process. Once your process seizes the device, there is no system processing of events. this may well be the way things are now, but it's an important thing to keep in mind.

rich

At 5:10 PM +0000 1/13/05, John Wood wrote:
OK, I've found and built the HID explorer sample code and I can now see the raw data from my powerbook trackpad and the bluetooth mouse independently.
This is looking great. Now just need to know how to turn seize one device for my exclusive use.
I'm looking thru the source code, but any hints will be much appreciated....


Thanks,

John


_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden

-- Sincerely, Rich Kubota email@hidden (408) 974-6212 _______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden
References: 
 >Re: Trackballs (From: "John Wood" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.