HID Manager callbacks return 0 value for some devices
HID Manager callbacks return 0 value for some devices
- Subject: HID Manager callbacks return 0 value for some devices
- From: faraz khan <email@hidden>
- Date: Mon, 14 May 2012 16:45:44 -0700
Guys,
I dont know where to post this problem so I posted it in the USB list
first but later realized its more of a kernel dev list. My problem is
that I need to be able to read the mice at the hardware level. I use
the new HID Manager API for this and the following work (perfectly):
1. Apple bluetooth mouse (magic mouse)
2. Apple USB mouse
3. Logitech USB Mouse
4. Internal trackpad
The following give me callbacks with ZERO value (I do get callbacks,
just has no value):
1. Apple Bluetooth trackpad (external)
2. Any mouse attached to a external thunderbolt display
The code is here. I'm using the newer HID Manager API documented here:
http://developer.apple.com/library/mac/#technotes/tn2187/_index.html
The code is available at:
http://pastebin.com/LVWFATUF
Also if i use the SeizeDevice option:
IOReturn ret = IOHIDManagerOpen(hidman, kIOHIDOptionsTypeSeizeDevice);
I can seize ALL devices EXCEPT the trackpad,etc (the ones that give
back zero value calbacks). Really bizarre. What am I missing with
these devices?
--
Faraz Khan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden