I'm trying to write a little app for the Clie PEG-TG50 that makes voice
recordings at certain time intervals.  Sony doesn't have an API for the
voice recording feature on any of their devices, but I thought I could get
what I needed by having my app fire the same event that the Record hard
button fires when you depress it.  Then I'd use an alarm to virtually "push"
the Record button again to stop the recording.

It looked easy enough at first since the SonyKeyMgr.h header contains this:

#define keyBitVoiceRec  (0x2000)  // VoiceRec Button

So EvtEnqueueKey((WChar)keyBitVoiceRec, 0, 0) should do the job, I thought.
No go.  In fact I can't get any of the key character codes in that header to
fire the intended event on the TG-50 (jog dial events, for example). There's
no response on the device at all.  (I'm running CW 9.1, have checked my
access paths to make sure I'm working from the OS 5 Sony headers, and am
running the code on the device.  I can't debug on the device right now b/c I
don't have a serial cable for this.)  Character codes for the regular Palm
hard buttons (like hard1Chr) work fine.

Next I figured I'd write a little app that draws the event information to
the screen right after I depress the Rec button.  If my app is working
right, the event that's fired seems not to be a keyDownEvent at all, but one
with eType of 47 (0x2F).  But if I put this type of event on the event queue
using EvtAddUniqueEventToQueue() I get:

Event68K.c Line:1062, EventToARM data not processed, event: 47

Is there something I am violating in PACE or whatever that would prevent me
from taking this approach to the problem.  Or likely there's more to the
event I need to queue than just the eType, but without a header or
documentation it's hard to know what the structure of that event would be.

Any ideas?

David


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

Reply via email to