From 506b1f321fc6053fda67792fb389eb4138a46a46 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 24 Nov 2013 02:21:05 +1000 Subject: [PATCH] Touch driver test tool - display more useful information --- tools/touch_driver_test/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/touch_driver_test/main.c b/tools/touch_driver_test/main.c index ef00f008..adfafa0f 100644 --- a/tools/touch_driver_test/main.c +++ b/tools/touch_driver_test/main.c @@ -140,7 +140,7 @@ StepRawJitter: gwinPrintf(ghc, "Release your finger to move on to the next test.\n"); // For this test turn on ALL mouse movement events - geventAttachSource(&gl, gs, GLISTEN_MOUSEDOWNMOVES|GLISTEN_MOUSEMETA|GLISTEN_MOUSENOFILTER); + geventAttachSource(&gl, gs, GLISTEN_MOUSEDOWNMOVES|GLISTEN_MOUSEUPMOVES|GLISTEN_MOUSEMETA|GLISTEN_MOUSENOFILTER); while(1) { // Always sleep a bit first to enable other events. We actually don't @@ -157,8 +157,7 @@ StepRawJitter: } } else if ((pem->meta & GMETA_MOUSE_UP)) break; - if ((pem->current_buttons & GINPUT_MOUSE_BTN_LEFT)) - gwinPrintf(ghc, "%u:%u\n", pem->x, pem->y); + gwinPrintf(ghc, "%u:%u z=%u b=0x%04x m=%04x\n", pem->x, pem->y, pem->z, pem->current_buttons, pem->meta); } // Reset to just changed movements. @@ -243,7 +242,7 @@ StepMouseCoords: } } if ((pem->current_buttons & GINPUT_MOUSE_BTN_LEFT)) - gwinPrintf(ghc, "%u:%u\n", pem->x, pem->y); + gwinPrintf(ghc, "%u:%u z=%u\n", pem->x, pem->y, pem->z); } // Reset to just changed movements.