I'm curious as to how computers get the most accurate key pressed sensing. For instance, how come whenever people are typing, they almost never get a double letter by accident?
If someone could tell me how it works and how I can apply this method to Scratch, it would be greatly appreciated.
Thanks!
Offline
You've probably noticed that when you hold down a key, it puts the key once, waits a second, and then repeats it indefinitely. That how's how it works. In fact, in Scratch, there is already something like that: the "key __ pressed" hat blocks use that same method.
Offline
coolstuff wrote:
You've probably noticed that when you hold down a key, it puts the key once, waits a second, and then repeats it indefinitely. That how's how it works. In fact, in Scratch, there is already something like that: the "key __ pressed" hat blocks use that same method.
I would use that... but it doesn't really fit my needs. I'll just recreate using the timer and a couple other tricks up my sleeve... thanks!
Offline