J
Jeff
midp 2.0
Java SE 5.0
J2ME version 2.2
When I in my midlet pushes the 6 key on the emulator or the 6 key on my
nokia 6630, "RIGHT_PRESSED" is written to my debug window
Nothing happens when pushing the 0 key....
Here is my trouble code:
int keyState = getKeyStates();
if ((keyState & RIGHT_PRESSED) != 0) {
System.out.println("RIGHT_PRESSED");
}
if ((keyState & Canvas.KEY_NUM0) != 0) {
System.out.println("HELLO WORLD");
}
I want HELLO WORLD to be written to the debug window when I push the 0 key
and RIGHT_PRESSED when I pushes the right navigation key!
What must I change to the code to solve this????
Jeff
Java SE 5.0
J2ME version 2.2
When I in my midlet pushes the 6 key on the emulator or the 6 key on my
nokia 6630, "RIGHT_PRESSED" is written to my debug window
Nothing happens when pushing the 0 key....
Here is my trouble code:
int keyState = getKeyStates();
if ((keyState & RIGHT_PRESSED) != 0) {
System.out.println("RIGHT_PRESSED");
}
if ((keyState & Canvas.KEY_NUM0) != 0) {
System.out.println("HELLO WORLD");
}
I want HELLO WORLD to be written to the debug window when I push the 0 key
and RIGHT_PRESSED when I pushes the right navigation key!
What must I change to the code to solve this????
Jeff