View Single Post
Old 07-15-2009, 02:47 AM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Jul 2009
Model: 8800
Carrier: Vodafone
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Trackball problem (doesn't work every time)

Please Login to Remove!

Hi. I'm developing an application for Blackberry 8800 and I have a big problem: I have to press the trackball more than once to recognize it and do the action. The value returned when pressing the trackball is:

bb_keyCode_fire = -8

This is the keyPressed method:

protected void keyPressed(int key) {

keysPressed = true;
keys |= getQuadGameAction(key);

try {
} catch (InterruptedException e) {
The getQuadGameAction(key) checks returns a number that has all bits equal to zero, except one that represents that key that has been pressed and it works fine. Maybe someone can give me a hand. Thanks!
Offline   Reply With Quote