I've got it to work in preliminary work, but with some minor changes to the above. One major problem I'm having right now is I didn't include for mappings into mouse and joy stick which made my program blow up when I'd click the mouse. I need to work out some logic to include the mouse and joystick scan codes into my array mapping.

Also, if you include default.c, it includes defs for key events, as well as debug. This means if you want to use default.c for debugging, then you'ld have to reset the events to the keys there to a nothing() function in your own code.

I'll post the code after I get a more complete solution... but, it's good to know that it can work with little difficulty... so far : )