06-13-2011 03:10 PM
I have mixed RIM API and MIDlet API, so I have listener from both world.
I have void keyPressed(int kc) from MIDlet world
and keyDown(int keyCode, int time) from RIM world.
I would like to know when a user press a DIGIT button and than do something.
I would like to know if the user pressed the 1 button, the 2 button, the 3 button ecc. ecc.
To do this I need to know at what keyCode button 1,2,3,4,5,6,7,8,9,0 corresponds.
RIM APIs is so good and than fails in a simple documentation like this, can't understand it.
06-13-2011 04:28 PM
Does Keypad.getUnaltedChar('1') not work? Alternatively, have you tried to override keyChar(character ch, int status, int time) and see if ch == KeypadListener.DIGIT_ONE, etc?