From: James S. <jsi...@tr...> - 2001-10-03 18:23:19
|
> Hi there, > > I'm not sure this question is welcomed to this list. I'm not the > member of this list yet. No problem. All questions are welcomed. > Hence, I'm thinking using Joypad (with cursor key, analog joystick, > four-buttons, two keys, and start button) to emulate keyboard. > (There's a joypad driver already.) Okay. Your doing something similar to the twiddler that we have in CVS except you are working in the opposite direction. The twijoy driver makes a twiddler which is a handheld keyboard act as a joytsick. Of course emulating a keyboard is much much harder. The input layer doesn't really do key compose. I have a dreamcast here at work and I do have a keyboard so I'm wondering how hard is it to get a dreamcast keyboard? > I think I need to implement some special TTY discipline to input a > character and to edit a line. Is there any work done in this area? > Please let me know. Nope. We already have a TTY discipline interface to the input layer. Take a look at the sunkbd.c driver. It is a keyboard that can plug into a serial port, with a special adaptor. The only problem is with serial lines devices you need a app called inputattach to actually use the serial device. You need to do this after insmod the driver for it. Hope this helps. Thanks for your interest. |