- Home /
Too many keys?!
Simple problem: one person plays my game (using four keys), keycode works fine. When I play with 3 other people for a total of 16 keys, Unity will sometimes miss keys. This can be EXTREMELY frustrating because I have absolutely no method to work around this problem. Can someone either a) tell me that this makes sense OR that there's most likely something else causing this or b) help me find a solution! I prefer to continue using 16 keys Thank you in advance!
Well, for what it's worth, on a $$anonymous$$ac you can only read 3 keys at once.
I use input in the Void Update(){}
call. Does it make a difference where I use it?
Answer by SirCrazyNugget · Jun 14, 2014 at 08:01 PM
Unfortunately it's a hardware limitation. Without going out and buying a keyboard that can handle the required number of inputs, even 16 is too high for some of these, you'll be restricted to on most keyboards three simultaneous key inputs (some laptops only support two).
There are different regions of keys which can detect simultaneous input, e.g. holding WASD may only return three of these keys, though you may be able to detect some of the input for IJKL again though this depends on the keyboard you have.
There is no solution for ensuring everyone has the same setup which can detect 16 key inputs at once on standard keyboards and most will struggle with eight. You may want to look at using the mouse as one possible device and additional controllers for the other two inputs.
Thank you very much! It's a very thorough answer (although it's a little disappointing). I'm glad to know that the problem didn't come from my own flawed code.
Your answer
Follow this Question
Related Questions
Trouble getting key down to work 1 Answer
GetKeyDown(KeyCode.Space) not working!? 3 Answers
Trying to make character move like frogger 0 Answers
Simple Quick Question 2 Answers
Problem With else if statement 1 Answer