I am working on the 5-way navigator and get the following problem :

The Up and Donw keys does not work if I use the definitions of vchrRockerUp
( 0x0132 ) or vchrRockerDown ( 0x0133) , but it does work if I redefine
these two key 's values as 0x000B and 0x000C. I get these values by looking
at the events in the simulator.

This happens all both the simulator and the real device of the Treo 600.

My code is pasted below. You can see that I must also comment out the macro
TxtCharIsRockerKey because of these changed values.

Is it a known problem or do I do something wrong ?

Thanks for your advice,

Vu

//  if( !TxtCharIsRockerKey( modifiers, chr))
//      break;
    if( chr == vchrRockerLeft || chr == 0x000B/*vchrRockerUp*/ )
    {
        // do stuff here
    }
    else if ( chr == vchrRockerRight || chr == 0x000C/*vchrRockerDown*/ )
    {
        // do stuff here
    }
    else if ( chr == vchrRockerCenter )
    {
        // do stuff here
    }


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

Reply via email to