From 3f67a260040ab83da501f92836c153384e5c27f7 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 5 Nov 2009 21:48:33 -0800 Subject: [PATCH] Unused devices are now moved to bottom right of screen --- src/tuio.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tuio.c b/src/tuio.c index 1407262..2653c24 100644 --- a/src/tuio.c +++ b/src/tuio.c @@ -314,12 +314,24 @@ TuioReadInput(InputInfoPtr pInfo) /* Post button "up" event */ xf86PostButtonEvent(obj->subdev->pInfo->dev, TRUE, 1, FALSE, 0, 0); } + valuators[0] = 0x7FFFFFFF; + valuators[1] = 0x7FFFFFFF; + valuators[2] = 0; + valuators[3] = 0; + + xf86PostMotionEventP(obj->subdev->pInfo->dev, + TRUE, /* is_absolute */ + 0, /* first_valuator */ + NUM_VALUATORS, /* num_valuators */ + valuators); + objtmp = obj->next; obj = _object_remove(obj_list, obj->id); _subdev_add(pInfo, obj->subdev); xfree(obj); obj = objtmp; + } else { /* Object is alive. Check to see if an update has been set. * If it has been updated and it has a subdevice to send -- 2.11.4.GIT