Advertisement

I can't get SDL keyboard input to work

Started by June 19, 2002 02:26 PM
1 comment, last by dh 22 years, 6 months ago
No matter what key I press event.key.keysym.sym is always SDLK_c. I can''t figure out why this is happening. It isn''t my code because when I put a break point there it is already SDLK_c before I do anything to it. Someone please help me.
try with
Uint8 *keys = SDL_GetKeyState(NULL); and check if
keys[SDLK_(something)] is true.Also take a look to the SDL documentation at http://sdldoc.csn.ul.ie/
Advertisement
post code plz

Drew Sikora
Executive Producer
GameDev.net

This topic is closed to new replies.

Advertisement