diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-01-31 17:33:40 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-01-31 17:33:40 +0000 |
commit | 9634eec8e123c0860f2716039570dd91a9839943 (patch) | |
tree | af62370c25eb39e6e6eb636d87b24377c795a7ee /vcl | |
parent | android: get non-modal message dialog up, and continue to main app execute (diff) | |
download | core-9634eec8e123c0860f2716039570dd91a9839943.tar.gz core-9634eec8e123c0860f2716039570dd91a9839943.zip |
android: debug / dump multi-touch events
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/android/androidinst.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx index 081f11ba0042..02219c816cb1 100644 --- a/vcl/android/androidinst.cxx +++ b/vcl/android/androidinst.cxx @@ -443,11 +443,19 @@ int32_t AndroidSalInstance::onInputEvent (struct android_app* app, AInputEvent* } case AINPUT_EVENT_TYPE_MOTION: { - fprintf (stderr, "motion event %d %g %g %s\n", + size_t nPoints = AMotionEvent_getPointerCount(event); + fprintf (stderr, "motion event %d %g,%g %d points: %s\n", AMotionEvent_getAction(event), AMotionEvent_getXOffset(event), AMotionEvent_getYOffset(event), + (int)nPoints, MotionEdgeFlagsToString(AMotionEvent_getEdgeFlags(event)).getStr()); + for (size_t i = 0; i < nPoints; i++) + fprintf(stderr, "\t%d: %g,%g - pressure %g\n", + (int)i, + AMotionEvent_getX(event, i), + AMotionEvent_getY(event, i), + AMotionEvent_getPressure(event, i)); break; } default: |