Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL checking for any key?

Started by Lith Feb 6, 2010 at 7:34 AM 1 replies 4.1k views
Original Post
Lith
Lith
Im using SDL, and im trying to make one of those screen's that say somthing like: "Press Any Key..." But how would i check for "any key"? I have looked in the SDL Documentation for a key definition for any key but i cant find any
Ezbez
Ezbez
In short: just don't check what key it is. When you check which events have happened, as in this Lazy Foo article, you will received a SDL_KeyboardEvent if any key is pressed. From there, you *could* check which key it is, or you could just take some action without knowledge of which key was pressed.
Lith
Lith
thanks!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.