Pooh. Sent that e-mail before finishing it.
Anyway, I was going to say something along the lines that the behavior
you're seeing is reminiscant of the way the Palm OS Emulator (Poser)
manages the posting of "pen events". I don't think the actual device causes
applications to see nilEvents before penEvents.
If my memory of what's going on with nil and pen events is right, then I'll
further add that I was thinking of changing Poser's behavior to more
closely match the actual device's. However, I haven't done this because of
the comments you've seen posted by others on this thread: applications
shouldn't really assume too much about when they'll receive nilEvents. Good
defensive applications shouldn't rely solely on nilEvents for timing. They
should also utilize timing information from the appropriate System and Time
Manager functions. By having Poser behave a little differently from the
actual device, developers have a "more hostile" environment in which to
test their applications.
-- Keith Rollin
-- Palm OS Emulator engineer
[EMAIL PROTECTED] on 05/27/99 05:38:30 PM
Please respond to [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (Keith Rollin/HQ/3Com)
Subject: Re: simple animation...
pete,
This thread's been done to death already, but I thought I'd offer an
additional comment that hasn't come up. There is a discrepancy between the
Palm OS Emulator and an actual device when a user-event is posted. The
dynamics of Poser are such that the application will see a nilEvent before
it sees the posted user-event.
Since this is the behavior you reported seeing
pete moss <[EMAIL PROTECTED]> on 05/25/99 09:56:19 PM
Please respond to [EMAIL PROTECTED]
Sent by: pete moss <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (Keith Rollin/HQ/3Com)
Subject: simple animation...
i am adding a bit of animation code to my yoda app. i want his eyes to
blink :)
currently, i have the animation code taking place on a nilEvent.
however, everytime i interact with the forms buttons, or hit the
applications button, it seems like a nilEvent is generated because the
eyes blink. this action seriously disrupts the actions the buttons
produce. any tips on how to make this smoother? is there a better way
to do the animation?
i am including the entire source file below if you need to see my code
thanks in advance
pete