diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:15:15 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:15:15 +1000 |
commit | 93da5a0578e7f16ea846eb257f36a24e316ef8d4 (patch) | |
tree | b0e08e991919fdb1fa9079b0ea40c23909cbcd3e /demos/tools/touch_driver_test | |
parent | 215f31ee3dd27f461540384cdba04b58b481fadc (diff) | |
download | uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.tar.gz uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.tar.bz2 uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.zip |
gDelayNone/gDelayForever to replace TIME_IMMEDIATE/TIME_INFINITE
Diffstat (limited to 'demos/tools/touch_driver_test')
-rw-r--r-- | demos/tools/touch_driver_test/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/demos/tools/touch_driver_test/main.c b/demos/tools/touch_driver_test/main.c index c338e24c..2a1e6486 100644 --- a/demos/tools/touch_driver_test/main.c +++ b/demos/tools/touch_driver_test/main.c @@ -176,7 +176,7 @@ StepDeviceType: } while(1) { - pem = (GEventMouse *)geventEventWait(&gl, TIME_INFINITE); + pem = (GEventMouse *)geventEventWait(&gl, gDelayForever); if (isCalibrated) { switch (CheckButtons(pem)) { case BTN_NEXT: @@ -225,7 +225,7 @@ StepRawReading: // Always sleep a bit first to enable other events. We actually don't // mind missing events for this test. gfxSleepMilliseconds(100); - pem = (GEventMouse *)geventEventWait(&gl, TIME_INFINITE); + pem = (GEventMouse *)geventEventWait(&gl, gDelayForever); gwinPrintf(ghc, "%u, %u z=%u b=0x%04x\n", pem->x, pem->y, pem->z, pem->buttons & ~GINPUT_MISSED_MOUSE_EVENT); if ((pem->buttons & GMETA_MOUSE_UP)) break; @@ -265,7 +265,7 @@ StepCalibrate: gwinPrintf(ghc, "Press and release your %s to move on to start calibration.\n", deviceText); while(1) { - pem = (GEventMouse *)geventEventWait(&gl, TIME_INFINITE); + pem = (GEventMouse *)geventEventWait(&gl, gDelayForever); if (isCalibrated) { switch (CheckButtons(pem)) { case BTN_NEXT: @@ -317,7 +317,7 @@ StepMouseCoords: // Always sleep a bit first to enable other events. We actually don't // mind missing events for this test. gfxSleepMilliseconds(100); - pem = (GEventMouse *)geventEventWait(&gl, TIME_INFINITE); + pem = (GEventMouse *)geventEventWait(&gl, gDelayForever); switch (CheckButtons(pem)) { case BTN_NEXT: @@ -359,7 +359,7 @@ StepMovementJitter: gwinPrintf(ghc, "Press Next or Back to continue.\n\n"); while(1) { - pem = (GEventMouse *)geventEventWait(&gl, TIME_INFINITE); + pem = (GEventMouse *)geventEventWait(&gl, gDelayForever); switch (CheckButtons(pem)) { case BTN_NEXT: break; @@ -402,7 +402,7 @@ StepClickJitter: gwinPrintf(ghc, "Press Next or Back to continue.\n\n"); while(1) { - pem = (GEventMouse *)geventEventWait(&gl, TIME_INFINITE); + pem = (GEventMouse *)geventEventWait(&gl, gDelayForever); switch (CheckButtons(pem)) { case BTN_NEXT: break; @@ -444,7 +444,7 @@ StepDrawing: gwinPrintf(ghc, "Press Next or Back to continue.\n\n"); while(1) { - pem = (GEventMouse *)geventEventWait(&gl, TIME_INFINITE); + pem = (GEventMouse *)geventEventWait(&gl, gDelayForever); if (pem->y < bHeight && pem->x >= swidth-2*bWidth) { if ((pem->buttons & GMETA_MOUSE_UP)) { if (pem->x >= swidth-bWidth) |