Jump to content
  • Advertisement
Sign in to follow this  
elnewb

[SDL] Lazy Foo Tutorial - Lesson 10.

This topic is 3254 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Typical keyboard hardware is limited in how many keys it can send. Try the same key combination in Notepad and see if that program fares any better.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!