How do you register an activity to get trackball events?
On 25 mrt, 18:31, David Turner <[email protected]> wrote:
> You need to register your activity to the system to tell it that you can
> handle trackball events directly. If you don't, then the system will emulate
> the events with key down/up events.
> I don't know the API to do that.
>
> By the way, you can press "Delete" to enable track-ball mode in the emulator
> (or even "Ctrl-T" to toggle between trackball and non-trackball modes). This
> should help you develop your app.
>
> (And I recommend to use a real trackball mouse attached to your machine to
> test that, it really feels better than using a mouse).
>
> On Wed, Mar 25, 2009 at 5:25 PM, ANKIT SOMANI <[email protected]>wrote:
>
> > Hi,
>
> > I want to Develop a Game in which I want to move my object using Track
> > Ball. for this i use onKeyDown() to up,down,left,right,fire movement in my
> > class. Its working fine in Emulator on D-Pad., but when i install in device
> > trackball not working efficiently. on Printing LogCat it says that the
> > OnKeyUp() is called automatically on each OnkeyDown().. which is right but
> > when I have to use is for continously(Continous trackball right pressing)..
> > It failed.I even try OnTrackBallEvent(). OnKeyMultiple... but not working..
>
> > If any body can help that on continous treating of trackball, please help.
>
> > Thanks in Advance.
>
> > Regards
> > ~Ankit Somani
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---