Get Keyboard Keys?
Posted: Wed Jun 04, 2008 4:45 am
I'm trying to write a gui for my game. The game uses SDL, but the gui part, for selecting a level, adjusting sound volume, and configuring keys, is just a normal window using openwindow() and gadgets.
What i need is a way to get what key is pressed after the user clicks on a button, for the key config section. Any ideas?
PS, I'm doing it this way, cause it's quicker than designing one inside the game screen.
What i need is a way to get what key is pressed after the user clicks on a button, for the key config section. Any ideas?
PS, I'm doing it this way, cause it's quicker than designing one inside the game screen.