I've got a game I use in research. As people learn that a light predicts an attacking spaceship, they start hitting a key associated with a weapon to charge it up before the ship appears. I'm using input.getkeydown to detect keystrokes. Typically I get response rates around 4-5 presses per second when they're prepping the weapon. But, today I got someone with rates up to 60 (framerate). I assume the person has their keyboard repeat rate and delay set to some values such that on each frame Unity thinks the key had been released and re-pressed and he/she is simply holding the key down. Is their any way I can detect those settings ahead of time?
↧