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: Possible to ignore kIOHIDOptionsTypeSeizeDevice ?



It's a Griffin Powermate. I just tried uninstalling the driver that they provide and it looks like the driver is the source of the problem. The HID Explorer works when their driver is uninstalled. I thought that the seize flag was supposed to work no matter what else was running? Our goal is to read raw output from the device and prevent events it generates from being handled elsewhere while our app is in the foreground.
The ioreg output is attached. Thanks for your help.



-Ben

Attachment: ioreg.txt.zip
Description: Zip archive



On Aug 15, 2005, at 3:34 PM, Rob Yepez wrote:

Hi Ben,

Do you have a little more information? What kind of pointing device are you attempting to open? Can you send me the terminal output of "ioreg -c IOHIDDevice -w 0"?

Thanks,
- Rob

On Aug 15, 2005, at 2:00 PM, Ben Hanks wrote:


By the way, I'm using 10.4. I'm using the sample code from HID Explorer to test this:
http://developer.apple.com/samplecode/HID_Explorer/HID_Explorer.html


The pointing device in question doesn't respond in the explorer. Other USB devices do.

Thanks.



On Aug 15, 2005, at 2:55 PM, Ben Hanks wrote:



Hi,

I'm trying to capture a pointing device using the HIDCreateOpenDeviceInterface call from the HID Utils which I have altered to use the kIOHIDOptionsTypeSeizeDevice flag. Here's the line I changed:

result = (*(IOHIDDeviceInterface**)pDevice->interface)->open (pDevice->interface, kIOHIDOptionsTypeSeizeDevice);

This seems to work with most devices but the particular one I need to capture in my app doesn't seem to let me seize it. The call doesn't fail (result == 0 right after) but the system continues to interact with the device and the app can't get data from it. Has anyone seen something like this before?

Thanks.




_______________________________________________ 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






 _______________________________________________
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: 
 >Possible to ignore kIOHIDOptionsTypeSeizeDevice ? (From: Ben Hanks <email@hidden>)
 >Re: Possible to ignore kIOHIDOptionsTypeSeizeDevice ? (From: Ben Hanks <email@hidden>)
 >Re: Possible to ignore kIOHIDOptionsTypeSeizeDevice ? (From: Rob Yepez <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.