Tested on the F3 nothing happens.
Any ideas?
Apparently there are also no events that would distinguish a long press from a short one (with the exception that invokes the menu, of course), right? It would be nice to have a few more options to get user input without forcing the user to go through the menu (too slow and tedious during activities, even Golf...).
My code looks like this (the example shows 3 buttons being handled. All three work on the simulator. Only the first and last work on the F3):
if( evt.getKey() == Ui.KEY_DOWN ) {
//Sys.println("down");
strokes[hole-1] = strokes[hole-1] - 1;
if (strokes[hole-1] < 0) {
strokes[hole-1] = 0;
}
if (onGreen == true) {
putts[hole-1] = putts[hole-1] - 1;
if (putts[hole-1] < 0) {
putts[hole-1] = 0;
}
}
validstrokeposition = false;
}
if( evt.getKey() == Ui.KEY_LIGHT ) {
//Sys.println("light");
if (onGreen == false) {
onGreen = true;
} else {
onGreen = false;
}
}
if( evt.getKey() == Ui.KEY_ENTER ) {
//Sys.println("enter");
nextHole();
review_round = true;
}