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.
Get Keyboard Keys?
meh.
meh. Sounds like it will just be easier to display a small SDL window displaying a "Press Button" message in it. And wait for an sdl keyboard event.
nope
That won't work for special keys like Shift, Alt, Arrow keys, etc...

