I'm a beginner c++ programmer. I use Win XP and CodeBlocks. I'm trying to make a pong game, I already have the controls programmed, but I need a method to do the following: Check for user input, if they don't input for x milliseconds, then continue with the loop so the ball's path can be updated. Or something that could check input and move the ball at the same time. Any Suggestions? Thank you!
Hawkpath
-2
Junior Poster in Training
Recommended Answers
Jump to PostIs this still a console program (the answer is in my reply to one of your other threads), or have you moved onto a GUI program?
GUI's are typically event driven, so you don't read the keys as such, but you do get key events as part of the …
All 3 Replies
Salem
5,138
Posting Sage
Hawkpath
-2
Junior Poster in Training
katmai539
62
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.