Re: switch from ADB to linux keycodes ...
Gregory P. Keeney writes:
> Particularly, the following post:
> http://www.macslash.com/comments.pl?sid=01/08/23/1916219&cid=7
>
> Well, now I know where to begin. The only thing stopping me from doing
> this tonight is the cost of a backup keyboard... Maybe I will pick up
> an inexpensive USB keyboard to use as a backup, and take the risk of
> destroying my TiBook keyboard.
I missed the beginning of this thread, but as I understand it:
1. the caps lock key does not generate a key-up event
2. you want to have a control key there
No problem, unless you intend to play Quake. You can fix the key
in software. When you get any key-up event, do this:
if(crummy_key_down) queue_crummy_key_up_event();
So for a Ctrl-A you get:
1. crummy key down
2. 'A' key down
3. 'A' key up
4. generate synthetic key-up event for the crummy key
This is a wee bit annoying if somebody taps the crummy key
while you are away from your keyboard, so one might also add
a 5-second timeout. You could also/alternately let a second
key-down for the crummy key cancel out of crummy-key-down mode.
You might not even need to hack the kernel. Linux already has
dead-key support which might do the job. Use the console tools
to adjust things as desired.
Reply to: