 | I'm using KeyCurrentState() call on my Tungsten T, and getting strange results.
When I press the up arrow (5-way navigation) I get a value of 2, down gives me 4.
Those seem ok, but the left an right is weird.
I get 16777216 for left, and 33554432 for right.
Any ideas here? On the Treo 600 simulator, by clicking on my PC keyboard (the left and right arrows, or the num pad) I get no value for KeyCurrentState(), possibly because this is a simulator??
Either way I'm confused. By looking at sample code various places on the net, I figured that I could just do this:
UInt32 KeyState;
KeyState = KeyCurrentState();
if(KeyState & keyBitRockerRight) { //do something when right rocker pressed }
but the values for left and right are screwed up....can someone shed some light into my ever darkening tunnel.
|
|