Giorgos Sarris a �crit :

> I get the penDown X and Y from:
> "case penDownEvent:"
> but the problem is that it does not keep getting
> events,
> it just take one event until I press the pen again.
>
> What should I do to get events all the time, while the
> user has the pen on the screen? Is there an API
> example for that?

You can loop until the stylus is up the screen:

Int16          screenX, screenY;
Boolean      penDown;

while( true )
{
   EvtGetPen( &screenX, &screenY, &penDown );

   if ( !penDown ) break;

    // pen-related processing
}


--
Luc Le Blanc




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to