Great, thanks! I'll give it a try.
I have one more question; I want to send my device an IOUSBDevRequest,
which I have been able to do using the "DeviceRequest" call in the
IOUSBLib; is this the "right" thing to do if I'm using HID, or is there a
better way?
thanks!
-jg
On Thu, 30 Jan 2003, Rob Yepez wrote:
> You are about halfway there. You need to create a code-less kext that
> contains something similar to the following in its Info.plist:
>
> <key>IOKitPersonalities</key>
> <dict>
> <key>MyMousePersonality</key>
> <dict>
> <key>CFBundleIdentifier</key>
> <string>com.apple.iokit.IOUSBHIDDriver</string>
> <key>IOClass</key>
> <string>IOUSBHIDDriver</string>
> <key>IOProviderClass</key>
> <string>IOUSBInterface</string>
>
> ...
> WHAT EVER YOU WANT TO MATCH ON
> ...
> </dict>
> </dict>
> <key>OSBundleLibraries</key>
> <dict>
> <key>com.apple.iokit.IOHIDFamily</key>
> <string>1.2</string>
> </dict>
>
> Make sure that you do not include the HIDDefaultBehavior key/value
> pair. This is what tips off the HID Manager to drive the cursor.
>
> In the future, I hope to have a mechanism to allow a trusted source to
> accomplish this same kind of behavior via the HID APIs. Unfortunately,
> this proves to be a security nightmare, and really need to be thought
> out further.
>
> Hope this works for you.
> - Rob
>
> On Wednesday, January 29, 2003, at 20:20PM, email@hidden
> wrote:
>
> > Hi everyone;
> >
> > I have a usb device that shows up in the HID explorer, and I'd like to
> > get
> > data from it using HID. However, it seems to be classified as a mouse,
> > since when I press its button it sends out a mouse click. It does this
> > even if I have queued up that element using the HID Utilities library
> > and
> > am current reading data from it.
> >
> > What I'd like to do is get the data via HID, but prevent the device
> > from
> > sending out actual mouse click events.
> >
> > In the archives of this list there was mention of a way to prevent the
> > device from sending out the mouse clicks: I can make a vendor specific
> > driver to match my device exactly. I tried this and it works fine but
> > then it won't show up as a HID device because my driver matches it
> > exactly
> > so the HID driver doesn't get a chance.
> >
> > Is there any way I can get the button clicks using HID but also prevent
> > the device from sending out a mouse click for each press?
> >
> > thanks for your help!
> > -jg
> > _______________________________________________
> > usb mailing list | email@hidden
> > Help/Unsubscribe/Archives:
> > http://www.lists.apple.com/mailman/listinfo/usb
> > Do not post admin requests to the list. They will be ignored.
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.