I am making a 3D dogfighting game.
Controls:
W and S are for elevation.
A and D are for roll.
Q and E for pitch.
up and down arrows for throttle.
And C for mouse look.
Method:
(Input.GetKey(KeyCode.UpArrow))
Problem:
When I press 2 keys at once, for example: A and W; or S and C. It works perfectly. However when I press 3 or more keys for example S, D, and C; then only the 2 keys that were pressed first execute properly. Is there a way to detect more key presses at the same time?
I have a “Microsoft Wired Keyboard 600”. Cheap and basic. German layout.
Using Input.getKeyDown()
I can scan Q,W,E,R at the same time, but when I try to add the 5th, the T key, it won’t recognize it.
W,A,D,C is also no problem here.
But the T and U don’t work with QWER.
I guess these limitations are not declared when buying a keyboard.
Googling it, I found that it is a architectural decision in cheap keyboards, manufacturers put different keys on the same circuit to save money.
Gaming keyboards have most likely a 5+ key cap.