[SDL] New to SDL - text input question

Colin Tuckley colin at tuckley.org
Fri Dec 1 09:45:57 PST 2006


Hi, I'm new to SDL.

I'm working on porting a mixed text and graphics application from an old and
unsupported graphics library (jlib) and am currently looking to use SDL.

I'm slowly getting the hang of things and will probably be using SDL_ttf to
do the text mode part of the app.

I'm currently looking at the keyboard input side of things. I started
writing some event handler code for key-up/down etc and realised that this
had probably been done before.

So, is there any keyboard handling code for SDL? Stuff that sorts out shift
state etc? Or maybe a way to have stdin (or another file handle) receive the
key presses for the SDL generated window?

Platform is Debian Linux and language is c.

regards,

Colin

-- 
Colin Tuckley      |  colin at tuckley.org  |  PGP/GnuPG Key Id
+44(0)1903 236872  |  +44(0)7799 143369  |     0x1B3045CE

Common Sense is the collection of prejudices acquired by age eighteen. - A.
Einstein




More information about the SDL mailing list