Touch driver test tool - display more useful information

ugfx_release_2.6
inmarket 2013-11-24 02:21:05 +10:00
parent ebefa7e3cd
commit 506b1f321f
1 changed files with 3 additions and 4 deletions

View File

@ -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.