Thank you very much for your comment! My code was handling MotionEvent in onTrackballEvent(), which is why context menu never showed up.
On Mon, Oct 27, 2008 at 11:19 PM, hackbod <[EMAIL PROTECTED]> wrote: > > Center pressing on the trackball is remapped to DPAD center if nobody > handled it themselves. This is why you can long press on the > trackball all over the UI to bring up the context menu. > > On Oct 27, 8:13 pm, "s d" <[EMAIL PROTECTED]> wrote: > > How do we bring up context menu when there is no D-Pad Center? Holding > down > > the trackball didn't seem to work for me. > > > > Thanks! > > > > On Mon, Oct 27, 2008 at 5:04 PM, hackbod <[EMAIL PROTECTED]> wrote: > > > > > They are translated, but of course it will be a quick down/up pair. > > > Snake should work; Lunar Lander not so well since it relies on you > > > holding down the button which you can't do with a trackball. > > > > > On Oct 27, 12:58 pm, Ed <[EMAIL PROTECTED]> wrote: > > > > Dear Mark, > > > > > > Thanks for your message. Are you saying that when you install > > > > LunarLander on your G1 device, you can steer left and right using the > > > > trackball? Because it sure doesn't work for me, or other G1 users in > > > > my office. Please try it out and let me know. > > > > > > Thanks, > > > > --Ed > > > > > > On Oct 27, 9:59 am, Mark Murphy <[EMAIL PROTECTED]> wrote: > > > > > > > Ed wrote: > > > > > > I had the same problem with the Lunar Lander application. Someone > on > > > > > > this group told me that the D-Pad events are supposed to be > handled > > > by > > > > > > the trackball, but this is definitely not happening. > > > > > > > Sure it is. If nothing handles onTrackballEvent(), it translates > the > > > > > events into KeyEvent instances and calls onKeyEvent(). It works > just > > > fine. > > > > > > > Well, other than the fact that I find the trackball to be less > precise > > > > > than a D-pad for things that actually try using these events. > > > > > > > -- > > > > > Mark Murphy (a Commons Guy)http://commonsware.com > > > > > _The Busy Coder's Guide to Android Development_ Version 1.3 > Published! > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

