Hi again,

Just reread your post and saw an earlier problem.  My code reads

if (event->eType == keyDownEvent)
{
    switch (event->data.keyDown.chr)
    {
    case hard1Chr:
...etc

Hope this helps
Ray

----- Original Message -----
From: Marc Campbell <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Sunday, April 02, 2000 2:35 AM
Subject: Intercepting hard keys


> I am probably missing something obvious here, but I am trying to intercept
> the hard buttons in the EventLoop, and it just won't compile with GCC.
Here
> is what I have:
>
> EventType event;
>
> EvtGetEvent(&event, 200);
>
> if (event.eType == keyDownEvent)
> {
>      if (event.data.keyDown.chr >= keyBitHard1 && event.data.keyDown.chr
<=
> keyBitHard4)
>         continue;
> }
>
> When compiling with GCC, I get a "parse error before '0x0004' on the line
> that checks what key was pressed.  If it matters, I am using the 3.5 SDK.
I
> would appreciate any ideas...
>
> Thanks-
> Marc
> [EMAIL PROTECTED]
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to