Just as a idea. With the input api it is possible to feed input events
into a device. What I would do is this:
1) Use TIOCSWINSZ to resize the console. Freeing up the bottom part and
draw avirtual keybaord into it.
2) Read the events from the gamepad and see where it it is over this
viritual keybaord and then feed this value into some "special" input
device that is not a real device but accepts input evnts from userland
to feed into the console layer.
|