Forum: General Topics

Forums / General Topics / Direction keys does not work in my Nokia 6151

 

Subject:Direction keys does not work in my Nokia 6151 

diego

8:52
Thursday
19-Jun-2008

My Nokia 6151 phone supports MIDP 2.0 CLDC1.1 CLDC1.1 jsr75pim jsr75file jsr82 jsr120 jsr135 jsr172.

I have tested both generic MIDP2.0 Jad file and with SR-82 for Bluetooh API. Also jad for Nokia S40/60.

This application works fine, all menus visible, but direction keys (up, down, left, right) do not work. I have to use numberic keypad instead to move around, except when numeric keys are alredy in use to select screens.

Any hint? Many thanks.

Diego
 
 

Stephen

15:57
Thursday
19-Jun-2008

Location:
Surrey, UK

Phone Model:
BB 9800 Torch
BlackBerry 8900
SE W910i
Nokia 5800

Hi Diego,

I'm surprised at this - I'd have thought the 6151 should work the same as any other S40 phone. Could you check the Keycodes that map to each key. To do this enable the Menu/Display/Show Debug Info option. Then each time a key is pressed the 'KC' line will give the Java Keycode associated with that key. The mappings that I'm using for the S40/S60 jar file are as follows:

ZERO 48
ONE 49
TWO 50
THREE 51
FOUR 52
FIVE 53
SIX 54
SEVEN 55
EIGHT 56
NINE 57
STAR 42
HASH 35
UP -1
DOWN -2
LEFT -3
RIGHT -4
FIRE -5
SELECT1 -6
SELECT2 -7


Are any of these different on your phone? If so I can compile a specific version for it...

Cheers,
Stephen

ps: One other thought, it couldn't just be that the 'Autolock' function is enabled on the map page (which will prevent the map from scrolling around) - this is enabled/disabled with the [FIRE] key...?
 

(You must be logged in to post a reply to this thread)