J2ME getKeyStates equivalent using RIM API's
Please Login to Remove!
I just recently converted many of my games to use the blackberry API's instead of the J2ME API's and there is only one thing that I cant find a nice equivalent with. It's the getKeyStates() in the GameCanvas class. Is there an quivalent in the MainScreen or FullScreen BlackBerry API classes?
getKeyStates() allows you to check if any key (multiple keys too!) is down or up. And please folks, I'm not looking for the keydown or keypressed events as this is a little different. I want the equivalent of getKeyStates().
The goal is to have the user press a key on the blackberry and move them in that direction until the user releases the key. A smooth movement.. not how when you press a key, pause, and then the key repeats itself.
Also, I tried the keydown and keyup events and that is a workaround but sometimes it fails by not recognizing the keyup event if you open up a menu or whatever.
Thanks,
Ron
|