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 ?



Hi Ben,

The IOHIDDevice that is attached to the Griffin Powermate is actually a shim for older IOHIPointing objects. Griffin probably uses the IOHIPointing class to post basic mouse type events while other events are sent through their user client to the a daemon running in user space. If there are no events being posted via the IOHIPointing class, you will not be able to receive events from the device using the HID Manager.

Like Raleigh mentions earlier, the more effective way around this would be to create a code-less kext that matches on the device with a high probe score. This will ensure that your program will be able to seize the device.

- Rob



On Aug 15, 2005, at 4:31 PM, Ben Hanks wrote:

Rob-

I tried sending the output of ioreg but it was big enough that it's being
held for moderation approval.
I'll recap the other info in that message in case it doesn't make it through:


The device is a Griffin Powermate. We need to seize it so that only our
app can see it and then read and respond to the raw data that it
generates. When the drivers provided by Griffin are installed, it
doesn't work with the HID Explorer or anything else I've tried. It's
like their driver won't let go. I thought that the
kIOHIDOptionsTypeSeizeDevice was supposed to be able to grab control from
everyone else...?
With their driver not installed it seems to work ok but we can't tell our
users to uninstall the driver. Is there some way to override their
driver in our app?


Thanks for your help.

-Ben




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