mouse pointer position

by Neel » Thu, 21 Jan 2010 21:57:17 GMT

Sponsored Links

I am trying to get the mouse pointer position from a native
I found out that WindowManagerService maintains the mouse cursor
surface object.

Problem is, I am not able to find any interface or way to extract the
object or the relevant information anyhow.

Please Help. :(


mouse pointer position

by Yi Sun » Fri, 22 Jan 2010 01:48:18 GMT

 I don't know which mouse implementation you are using, the one made by
me simulate the touch event for mouse. So you only need to catch the
touch events as other apps do. And you will also need to catch the up
key and down key events for the mouse wheel.


Sponsored Links

Other Threads

1. Anrdoid AppWidget setPendingIntent didn't work until reboot

I'm creating an AppWidget application. It has a button which launches
external activity.
Here is code:

            Intent clickintent = new Intent(Intent.ACTION_MAIN);

            PendingIntent pendingIntentClick =
                    context, 0, clickintent, 0);


The question is: why this code working ONLY after reboot of
device(testing on HTC Legend Anroid 2.1) or Emulator(2.1, 2.2. On 1.5
i can't reproduce thath)?
Before reboot just nothing happens. In LogCat i see nothing on
pressing button - no errors, warnings, infos or anything.
After reboot all works fine.

Any ideas?


2. Froyo 2.2 disables requestWindowFeature(Window.FEATURE_NO_TITLE);

Just trying to get a confirmation, has anyone else found that since
updating to 2.2 the following line has no effect:


Is there a new permission required?


3. DexClassLoader- ActiivityNotFound

4. How to cleanly finish an activity? (activity timeouts prevent restarting an app)

5. Notification for the Message sent by SMS toolkit

6. Beta Testing Request - TextWand

7. Penampakan Froyo di Liquid