After some experimentation, this scheme for detecting a tap in the
graffiti area seems to be working fine so far:
// Form's even handler...
switch (eventP->eType)
{
case nilEvent:
case keyDownEvent:
// if we're in full screen mode, and there are points in the
graffiti queue,
// there was a tap or stroke. Go back to normal.
if( trapGraffitiTaps )
{
UInt16 numPoints;
GrfGetNumPoints( &numPoints );
if( numPoints > 0 )
{
// A tap or stroke occurred, respond here
GrfFlushPoints();
handled = true;
}
}
break;
...
Here's the question, though: I reliably get a nil event on a single tap
in the graffiti area with each OS I've tried (3.1 through 3.5), but is
this an undocumented side effect or a "real" occurrence I can rely on?
Thanks for any illumination on this,
Dave Johnson
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/