Hey again,

Is there a way to capture multiple key presses? Here's what we want to do:

When a user wants to drive the robot manually from the keyboard, we want to allow them to press WASD to determine the direction they move. The problem we've run into is say for example the user wants to make a right turn... our program doesn't recognize that both W and D are being pressed. Is there a way to capture two keys as well as just one?

Thanks!

then you need to change how you're testing it.

key down events would happen in say the order W then D, but at the D event the only key you're told went down is D..

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.