inetbot web crawler
Main  |  Get access to the repository  |  API  |  The robot  |  Publications  |  Usenet Groups  |  Plainweb  | 
 inetbot - Groups (beta)

Current group: codewarrior.palm

KeyCurrentState returns weird value

KeyCurrentState returns weird value  
userforgroups at hotmail.com
From:userforgroups at hotmail.com
Subject:KeyCurrentState returns weird value
Date:7 Dec 2004 00:39:14 -0800
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.
   

Copyright © 2006 inetbot   -   All rights reserved