Sign in to follow this  
elnewb

[SDL] Lazy Foo Tutorial - Lesson 10.

Recommended Posts

Hey there everyone. I'm learning SDL from Lazy Foo's tutorials (Found here: http://lazyfoo.net/SDL_tutorials/index.php ). I ahve completed lesson 10 but have noticed a bug. I am unable to press more than two directional buttons at a time. Although I am still able to press two buttons plus ESC at the same time. Has anyone noticed this and/or can it be confirmed that it's the same for everyone? Lesson 10 is here for you to read: http://lazyfoo.net/SDL_tutorials/lesson10/index.php I have tested this with both Lazy Foo's code and my own code. My code: http://codepad.org/vJZWSB12

Share this post


Link to post
Share on other sites
I'm sorry, but I cannot confirm this. Even with your and Lazy Foo's code, I can detect at least five simultaneous key presses. I don't know what's giving you a problem. You should be able to detect more than two, as far as I know.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this