[SDL] Lazy Foo Tutorial - Lesson 10.

Started by
1 comment, last by Kylotan 14 years, 9 months ago
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
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.
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.

This topic is closed to new replies.

Advertisement