I want to do the following: remap some keys on a _specific_
usb-keyboard. For instance: when I press the right option key, I want
it to be reported as 'enter'.
In my mind this calls for an iokit driver kernel extension. (please
correct me _now_ when there is a more elegant / user space way to
achieve the same thing).
On the face of it, the task doesn't look too daunting. It should be a
simple matter of adapting the already available open source Apple
keyboard driver. Looking around on the Apple dev web site didn't turn
up (m)any clues about how usb keyboard input is handled, but
downloading the USBFamily.kext code made things a little clearer.
From the code, and from using kextstat, it seems that generic usb
keyboards are handled by the IOUSBHIDDriver kext, which is a 'plug in'
to IOUSBFamily.kext.
So now my initial questions are:
- Is writing a kext driver the right way to go?
- If so, is there any example code for keyboard drivers
- When I complete my kext, should it be installed in the plug in
folder of USBFamily
or can it remain at the top level of /System/Library/Extensions
I'm trying to figure out the flow of information from the hardware
through the system, but I'm having some trouble digging up the correct
documents. Any help is appreciated.
t.i.a.
---
Hieper Software
e: email@hidden
w: www.hieper.nl
_______________________________________________
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