Re: "Capturing" a keyboard-like device in a Cocoa application?
Re: "Capturing" a keyboard-like device in a Cocoa application?
- Subject: Re: "Capturing" a keyboard-like device in a Cocoa application?
- From: Chris Hanson <email@hidden>
- Date: Tue, 15 Apr 2003 23:51:49 -0500
At 12:41 AM -0400 4/16/03, Kyle Moffett wrote:
This sounds like you'll need to write a KEXT driver for this device.
What device is this? Is there already a Mac OS X driver for it? If
there is not, then you'll need to write one, in the form of a KEXT,
and have it bind to the device using IOKit. Then you can handle the
keystrokes however you want. If there is, that too depends on the
device. Please be more specific.
Thanks for your response. Unfortunately I can't be a whole lot more
specific. Think of devices like USB bar-code readers: At least some
act like HID devices that send "keystrokes" when they're run across a
code, which may include not only the code but other information as
well.
The device I'm using sends keystrokes that include things like
carriage returns and special formatting. So I can't just ask the
user to put the insertion point in a particular field and then use
the device - I have to handle device input completely separately from
regular keyboard input. (Not only that, but asking the user to do
something special before using the device is a user annoyance.)
The device already has a Mac OS X driver in the form of the built-in
Mac OS X USB HID class driver. No device-specific driver is
necessary, and none is really desired.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.