This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-05-30 18:03:05

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Textbox Typing?

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

 

#2 2010-05-30 18:18:02

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Textbox Typing?

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

 

#3 2010-05-30 21:11:56

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Textbox Typing?

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

 

Board footer