(keitai-l) Re: i-mode - DOJA - KEY_PRESSED_EVENT

From: Jason Pollard <jasonpollard_at_yahoo.com>
Date: 02/19/04
Message-ID: <20040219015048.64645.qmail@web9902.mail.yahoo.com>
--- César_Fernández <cfernandez@insidelabs.com> wrote:
> When using the processEvent() method for handling low level events such 
> as a key press, I want to know how long a key is pressed. When a key is 
> pressed one KEY_PRESSED_EVENT event is generated, and I think that no 
> more events are generated while that key is pressed until the key is 
> released. Suppose that I want, for example, print a '5' when the key  #5 
> is pressed, but if the key is still being pressed I want to keep on 
> printing 5s while the key is pressed. Is there any way to get events 
> generated while the key is pressed in order to do that?
> 
> This mail was sent to address jasonpollard@yahoo.com
> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/ 
> 

Put your task to be repeated on a Timer, then start/stop it on
keypress/release.

--Jason


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
Received on Thu Feb 19 03:56:33 2004