From 45cc286ced7256f41f003220517b0a32a72c9a59 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Tue, 23 Jun 2009 15:49:40 -0700 Subject: [PATCH] Input calc fixed --- src/tuio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tuio.c b/src/tuio.c index 4a9a98b..981fb11 100644 --- a/src/tuio.c +++ b/src/tuio.c @@ -348,8 +348,8 @@ _tuio_lo_cur2d_handle(const char *path, obj->y = argv[3]->f; /* THIS NEEDS TO BE FIXED!! */ - valuators[0] = obj->x * 0xFFFFFFFF; - valuators[1] = obj->y * 0xFFFFFFFF; + valuators[0] = obj->x * 0x7FFFFFFF; + valuators[1] = obj->y * 0x7FFFFFFF; xf86PostMotionEventP(pInfo->dev, TRUE, /* is_absolute */ @@ -503,7 +503,7 @@ _tuio_init_axes(DeviceIntPtr device) #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 atoms[i], #endif - 0, 0xFFFFFFFF, 1, 1, 1); + 0, 0x7FFFFFFF, 1, 1, 1); xf86InitValuatorDefaults(device, i); } return Success; -- 2.11.4.GIT