I have a question about pen events:

Let's say I draw a line from the Calc softkey to the Menu softkey, with
the pendown on the Calc and the PenUp on the Menu.  What is the os doing
during this time?  Here's what I see from my emulator log: a whole bunch
of EvtEnqueuePenPoint calls, terminated by a EvtEnqueuePenPoint:
pen->x=-1, pen->y=-1

After that, I get
2.023: --- System Call 0xA127: EvtDequeuePenStrokeInfo. (????)
2.023: --- System Call 0xA272: PenRawToScreen.
2.023: --- System Call 0xA272: PenRawToScreen.
2.023: --- System Call 0xA272: PenRawToScreen.
2.023: <-  EvtGetSysEvent: penUpEvent      X:11   Y:202
2.023: --- System Call 0xA20D: WinDisplayToWindowPt.
2.023: <-  EvtGetEvent: penUpEvent      X:11   Y:202
2.023: --- System Call 0xA0A9: SysHandleEvent.
2.023: --- System Call 0xA1C8: RctPtInRectangle. (????)
2.023: --- System Call 0xA121: EvtProcessSoftKeyStroke. (????)
2.023: --- System Call 0xA122: EvtGetPenBtnList.
2.023: --- System Call 0xA1C8: RctPtInRectangle. (????)
2.023: --- System Call 0xA1C8: RctPtInRectangle. (????)
2.023: --- System Call 0xA1C8: RctPtInRectangle. (????)
2.023: --- System Call 0xA1C8: RctPtInRectangle. (????)
2.023: --- System Call 0xA1C8: RctPtInRectangle. (????)
2.023: --- System Call 0xA129: EvtFlushNextPenStroke. (????)
2.023: --- System Call 0xA11D: EvtGetEvent.

Followed by no interesting action.

What I take from this is that the stroke gets queued, the
EvtDequeuePenstrokeInfo is called with the parameters of the start point
and end point of the entire stroke, does a RctPtInRect to find out
whether the stroke is in the main screen or teh graffiti area, finds
that it's in the silkscreen area and calls EvtProcessSoftKeyStroke with
the same parameters it recieved.  This call then checks the start and
end points against a RctPtInRect for the silk buttons and
EvtFlush...????

Here's my problem: when I intercept the EvtProcessSoftKeyStroke call,
the startPtP and endPtP variables are the same, equal to my starting
point.  Maybe I have to pull points off the queue until i hit the end,
but why doesn't the system have to do this?

Any help is greatly apprecaited.  thanks.

-Jacob


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

Reply via email to