Just to clarify, the trackball left/right works in the emulator (using
the G1 skin), but not in the real phone. This is the relevant code
from the sample app:
// center/space -> fire
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER
|| keyCode == KeyEvent.KEYCODE_SPACE) {
setFiring(true);
return true;
// left/q -> left
} else if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT
|| keyCode == KeyEvent.KEYCODE_Q) {
mRotating = -1;
return true;
// right/w -> right
} else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT
|| keyCode == KeyEvent.KEYCODE_W) {
mRotating = 1;
return true;
// up -> pause
} else if (keyCode == KeyEvent.KEYCODE_DPAD_UP) {
pause();
return true;
On Oct 24, 10:13 am, Ed <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I just installed the sample Lunar Lander app on my G1, only to
> discover that the inputs that worked on the emulator's D-Pad (left and
> right), no longer work. Is there a code snippet somewhere that can
> switch my apps that were developed with the D-Pad in mind to the
> scroll wheel thingie?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---