I need to do some processing of data and also watch for pen events. If a pen event should occur, the processing has to stop and the program needs to process the event and then continue processing again. I am using EvtGetPen(), but there is a delay of 1 tick everytime this function is called, and it is noticeably degrading the performance. Is there a faster way ?
I don't know a good answer to your question.
But if EvtGetPen() turns out to be the only way, you could just call it less often. Check every few iterations how much time has passed since you last called it. If you check only once every half second, the one tick delay will be pretty minimal. You might want to experiment a bit to find the right balance between feeling responsive and not taking too much time.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
