0

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!

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by LizR
0

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..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.