Jonathan wrote:
> You need to have the commandKeyMask bit set in the 3rd parameter
> to EvtEnqueuKey, I believe.
Yeah, I tried it both ways, but no joy. You're right, I'd normally think it
needs to be set.
> To be sure how the keyDownEvent looks like for the VoiceRec button
> set a breakpoint in your event loop, press the button and look at the
> event.
Well, once I find a serial cable that will work with the TG50 maybe I'll be
able to actually use a debugger with it. For now I seem to be stuck with
writing code in the event loop that will draw stuff to the screen. Unless
someone has a better idea.
If someone knows what the fatal error message means exactly, that might give
me a clue about how to proceed. Does it mean that PACE won't *let* me queue
an event with eType 0x2F under any circumstance, or that it's not processing
the event because I need to set values for other parameters in the event, or
maybe I'm just making a stupid mistake that I'm not seeing?
Here's how I call EvtAddUniqueEventToQueue:
MemSet(&recEvent, sizeof(EventType), 0);
recEvent.eType = 0x2F;
EvtAddUniqueEventToQueue(&recEvent, 0, true);
I've also tried setting the third parameter to false (just casting about for
other things to try). The obvious issue is that an event is usually more
than an eType and that's all I'm setting. I'm willing to try poking around
in the dark for a while, but I thought someone might have a comment about my
general approach--or maybe has actually found a serial cable for debugging a
TG50. The cables I've seen advertised leave out the TG50 as supported
devices, but I may try one anyway. If someone has a cable that works (a)
please let me know where they got it, and (b) take a few moments to do as
Jonathan suggested with a breakpoint in the event loop of an app and let me
know what the details are about the event that the Rec button fires.
TIA,
David
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/