My turn to help you out. I am not a USB programmer either but have
made quite a lot of use of the HID Manager. But even there I would
not call myself an expert so others may want to correct what I say
below.
we'd like to create an app that catches the output provided by USB
bar code reader. It behaves like a HID keyboard device and I see it
in HID Explorer. The problem is that certain app is not fast enough
to capture all the keystrokes produced by the reader. Since there's
no config app for the reader, a custom solution is required. The
solution would be to capture all the keystrokes exclusively by our
code and then forward them to the app in some manner. I'm not an USB
programmer so I'd like to ask few questions such as:
I actually managed to get along pretty well with just that sample
code as it does all the hard stuff for you.
- Is possible to capture all the keystrokes produced by that HID device that
should go that the app my code is loaded in?
Starting in Panther you can capture a device with the HID manager so
it will not be available to other apps or even the system. You will
need to use kIOHIDOptionsTypeSeizeDevice (see the Panther headers for
more info) and modify the sample code accordingly.
- What would be the recommended steps for doing such app.
Build a basic app using the HID Utilties sample and take it from there.
- I believe this can be done without the kernel level code or am I wrong?
No need for going into the Kernel unless you want to capture the
device on pre-Panther systems.
And about the forwarding of the events, try AppleEvents ;-)
Cheers,
david.
_______________________________________________
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.