scummvm/scummvm — pull request #285 by murgo (2012-10-11 14:29:33+00:00)
Title: Mouse/stylus/touchpad support for android port

I've added support for pointer devices to Android port.

What's tested:
- USB mouse on Galaxy Note 2 (Android 4.1) (both buttons work, hovering works)
- USB mouse on Asus eeePad Transformer Prime (Android 4.1, CyanogenMOD) (both buttons work, hovering works)
- Stylus on Galaxy Note 2 (Android 4.1) (left mouse button is triggered when touching the screen, right mouse button is triggered when pressing the stylus button while hovering, hovering works when keeping the pen a little distance away from screen)
- Touchpad on ASUS eeePad Transformer Prime (Android 4.1, CyanogenMOD) (both buttons work, hovering works)
- Touch screen still works as before, in touchpad mode and in "regular" mode
- Backwards compatibility has been kept intact (tested with emulator running Android 1.6)

What's untested:
- Using bluetooth mice
- Using dpad/trackball/whatever (nothing really shouldn't have changed regarding those, but you'll never know)
- Using mice on Android <4.0 (mouse probably just doesn't work, otherwise should work as before)

Test-APK built from this fork can be found at https://www.dropbox.com/sh/ob1dise58h1v1vs/H9wZb4yOlG