John Joyce
5/11/2008 2:31:00 PM
H. D.
You should check out some of the game libraries for Ruby.
Gosu
RubySDL
etc...
The keyboard thing is going to be largely platform dependent.
Many times, game libraries try to be crossplatform too.
At the very worst, you may need to create a ruby extension.
The Allegro game library, done in C, has a nicely abstracted set of
keyboard controls...