From the beginning the product my company makes that runs QNX has been
handling keyboard input in a certain way. Our program will kill Input
(slay -f Input), then open /dev/kbd and read whatever comes through. We
then take the keycodes and map them to our own commands. We do this to
prevent anybody from “leaving” our application and doing anything else.
There is a developer combo we can use while developing to “leave” our
application and go back to photon. The part that handles input is not a
photon app, but rather a simple select() on a descriptor open on /dev/kbd.
We recently want to support some new characters (mostly supplemental Latin
characters such as ñ, Ñ and accented characters). Reading through the
Photon Install/config manual, I see I can type Alt, ~, and n to produce ñ.
This got me thinking…
What handles the parsing of the key combos to produce the characters? If I
can use this, it’d be great. I would like to be able to use as much of what
QNX already has done with my application, but as I look at this more I think
it might need a bit of rewriting.