Anyone know how to read keyboard combinations in SDL? For example
what is the best way to detect ALT+F4 or [Shift]+A.
Anyone know how to read keyboard combinations in SDL? For example
what is the best way to detect ALT+F4 or [Shift]+A.
<A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
<br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
<br /></A>
I think combination detection is up to the programmer(you).
SDL has awesome input features, though. You can practically tell what key has been pressed and unpressed in a queue. So if you make an object with methods or simple array of each key you want to track, you can use this to check for combinations where input control is required.
I use this aproach in all my games. If you look up my latest game project, you'll see how I do it with my own Keymap System.
Bookmarks