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/android | |
parent | 755227bf6dd5d8061869e68f5c970780a5e3b53b (diff) |
android: debug / dump multi-touch events
Diffstat (limited to 'vcl/android')
-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: |