onKeyDown not firing every frame?

onKeyDown not firing every frame?
0.0 0


Is onKeyDown supposed to trigger every frame? Using 60 fps, I’ve noticed a 20 frame gap between the first trigger and the second and every trigger after that had a gap of about 5 frames. Is this intentional? I had intended to assume once it stopped triggering that the key was no longer pressed down but that would not be reliable if this is true.

To determine this I’ve set a property when onKeyDown triggers with the key I want, print that property in an update tick and flip the property off. I hold the key down the entire time.



I’m going to guess that it’s intentional and it’s when the OS is sending the event ;).