Embedded Linux Button Support

Linux Robot linuxrobot at hotmail.com
Tue Jul 24 15:37:00 PDT 2001


How did you know this was for my micromouse project?!? (lol)  Actually, the 
button support probably isn't absolutely necessary for the minimal operation 
of the mouse, but it would be a cool way to impress the other micromice (I 
wanna give my mouse all the help it can get, considering I'm not going to 
get it any GQ clothes or cologne or anything).  Also, if I can get the 
buttons working I can start with game development.  I am still a little 
bitter at Nintendo for giving me the shaft when I inquired about using the 
GameBoy for my micromouse.  So if I get some free kick-ass games going for 
the PDA...  (Also another good way to get my mouse some play.)

The Gaming Linux Robot Playa


>From: "Warren Togami" <warren at togami.com>
>Reply-To: "Linux & Unix Advocates & Users" <luau at list.luau.hi.net>
>To: "Linux & Unix Advocates & Users" <luau at list.luau.hi.net>
>Subject: [luau] Re: Embedded Linux Button Support
>Date: Tue, 24 Jul 2001 02:20:52 -1000
>
>Is this for your micromouse project?
>It may be easy to write a simple program in bash, perl or C that sits
>quietly and accepts input from stdin.  If it sees a matching keycode, it
>could take appropriate action by either spawning a new background process,
>or signalling an already running process.  For signalling check out "man
>sigaction" to code the programs that would be controlling things in
>background processes, and signallable from the tiny controller process.
>Using struct sigaction may be easiest in C for coding those background
>processes.
>
>Under the MVC (Model, View, Controller) design paradigm, this tiny program
>would be the "controller" portion, controlling processes within the 
>"model".
>Your view could be integrated into this controller frontend, giving useful
>status information on the console or if needed, a simple textual menuing
>system.
>
>Be careful in learning what these key codes actually contain, because often
>shells don't display all hidden control characters within keycodes.  
>Perhaps
>you should code a simpler program that does nothing but capture a key code
>then display it in hexadecimal.


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



More information about the LUAU mailing list