Well, I don't know what an "MT-driver" is, and I don't know how to add an event to the stream, but you're still a genius. Taking your suggestion I copied and pasted what happens when usbParseChannel() gets a BTN_TOOL_PEN event and so that it happens every time the function is called. It's obviously "not right", but I can now get cursor control. It's kind of jerky (as if my CPU was maxed out, but I don't think that was it) and I can't "click" on anything, but it's a start.If you add the TOOL_PEN event to the stream in the MT-driver, does this change the behaviour? Here is my hackjob of a patch: diff -ru linuxwacom-0.7.4-3/src/wcmUSB.c linuxwacom-0.7.4-3-adsllc/src/wcmUSB.c --- linuxwacom-0.7.4-3/src/wcmUSB.c 2006-07-02 21:10:23.000000000 -0400 +++ linuxwacom-0.7.4-3-adsllc/src/wcmUSB.c 2006-07-02 21:11:09.000000000 -0400 @@ -530,7 +530,7 @@ return !Success; } common->wcmMaxZ = nValues[2]; - if (common->wcmMaxZ <= 0) + if (common->wcmMaxZ < 0) { ErrorF("WACOM: press max value is wrong.\n"); return !Success; @@ -700,6 +700,11 @@ ds->relwheel = 0; ds->serial_num = serial; +ds->device_type = STYLUS_ID; +ds->proximity = (event->value != 0); +DBG(6, ErrorF("USB stylus detected %x\n", + event->code)); + /* loop through all events in group */ for (i=0; i<common->wcmEventCnt; ++i) { |
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Linuxwacom-discuss mailing list Linuxwacom-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss