Use event.getX() and event.getY(). Values are > 0 for one direction
and < 0 for another.

On Jul 27, 10:48 pm, hap 497 <hap...@gmail.com> wrote:
> On Sat, Jul 25, 2009 at 2:49 AM, lucky4me <bakhtiyo...@gmail.com> wrote:
>
> > See "Controlling the Emulator"
>
> >http://developer.android.com/guide/developing/tools/emulator.html#con...
>
> > Toggle trackball mode - F6, then you can use mouse as trackball
>
> Thank you. But how can I tell if the track ball event is moving left or
> moving right?
>
> I tried called "event.getEdgeFlags()" in the motion event, it always return
> 0.
>
> Thank you for any tip.
>
>
>
>
>
> > On Jul 25, 11:45 am, hap 497 <hap...@gmail.com> wrote:
> > > i don't understand the answer. How can I do that on the emulator
> > manually?
> > > E.g. I have implemented dispatchTrackBallEvent() of my View. What can i
> > do
> > > to in to emulator so that function get called during debugging?
>
> > > On Fri, Jul 24, 2009 at 4:09 PM, Fred Grott(shareme)
> > > <fred.gr...@gmail.com>wrote:
>
> > > > Mock testing see apiDemos for details..all the cool kids are doing it
>
> > > > Fred Grott
> > > >http://mobilebytes.wordpress.com
>
> > > > On Jul 24, 1:48 pm, hap 497 <hap...@gmail.com> wrote:
> > > > > Hi,
> > > > > Can you please tell me how can I simulate a TrackBall Event in
> > emulator?
> > > > > I just the left/right black button in the middle of the emulator, but
> > i
> > > > set
> > > > > break point in dispatchKeyEvent() and dispatchTrackBallEvent() of the
> > > > > View.java.
> > > > > But only dispatchKeyEvent() breakpoint get activated.  I want to see
> > > > > 'dispatchTrackBallEvent' get breaks.
>
> > > > > Can you please tell me how to simulate a TrackBall Event?
>
> > > > > Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to