aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-11-24 02:21:05 +1000
committerinmarket <andrewh@inmarket.com.au>2013-11-24 02:21:05 +1000
commit506b1f321fc6053fda67792fb389eb4138a46a46 (patch)
tree88cf122aa27fe1992d93d883431d94a12bad7650 /tools
parentebefa7e3cd0fe6a7472788b34eee1b16cce019d3 (diff)
downloaduGFX-506b1f321fc6053fda67792fb389eb4138a46a46.tar.gz
uGFX-506b1f321fc6053fda67792fb389eb4138a46a46.tar.bz2
uGFX-506b1f321fc6053fda67792fb389eb4138a46a46.zip
Touch driver test tool - display more useful information
Diffstat (limited to 'tools')
-rw-r--r--tools/touch_driver_test/main.c7
1 files 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.