vialab / SMT

Simple Multi-Touch (SMT) Toolkit
http://vialab.science.uoit.ca/smt
GNU General Public License v3.0
43 stars 18 forks source link

WM_TOUCH not working #82

Closed tuxicon closed 11 years ago

tuxicon commented 11 years ago

The support WM_TOUCH using touch2tuio is not working in Windows8.

ZachCook commented 11 years ago

Does this give an output of "Could not install hook for SKETCH_NAME" ?

tuxicon commented 11 years ago

Nope, No Output. I think its a problem with hooking up with processing window. Im not sure. Im using this http://openexhibits.org/download/windows-7-touch-to-tuio-utility/, You might wanna consider this an alternative to touch2tuio. It creates an overlay window and works.

ZachCook commented 11 years ago

your sketch was using "TouchClient.init(this, TouchSource.WM_TOUCH);" right?

Also are you using Processing 2.0b8 ? 2.0b7 does not work with touch2tuio

mshancock commented 11 years ago

I have this same problem on Processing 2.0.1 in Windows 8. I'm using:

TouchClient.init(this, TouchSource.WM_TOUCH);

The output in the console is:

TuioClient listening on port: 3333
TUIO/UDP messages to 127.0.0.1@3333
WM_TOUCH: Successfully installed hook and started TUIO server

But no touch events happen.

The bridge posted by tuxicon works for me too, but only full screen and using a somewhat annoying overlay window (like the SMARTtoTUIO2.exe) that needs to be unminimized to work. Better than nothing, though. It also requires you to register on their website and provide too much information to get.

ZachCook commented 11 years ago

I installed Windows 8 myself, and have been working to fix this, for now when using TouchSource.MULTIPLE it will use the SMARTtoTUIO backend when on windows 8.

The breakage is in Touch2Tuio, but it should be fixable, and I am familiar with the codebase, so if we want to make this high priority, I think I could have it working early next week.

mshancock commented 11 years ago

When I use TouchSource.MULTIPLE, I get this output on the console, and touch input doesn't work:

TuioClient listening on port: 3333
TuioClient listening on port: 3334
TuioClient listening on port: 3335
TuioClient listening on port: 3336
TUIO/UDP messages to 127.0.0.1@3334
WM_TOUCH: Successfully installed hook and started TUIO server
LEAP: Initialized
LEAP: Press Enter to quit...

I think that means it successfully started TUIO, so never gets to SMARTtoTUIO.

When I try TouchSource.SMART, I get an error message in a dialog box that says: "Error occurred while trying to register SBSDK handler"

Fixing Touch2Tuio sounds like the best plan, and it would be great to have this as a high priority. It would be great if anyone with a Win8 touch screen could develop with SMT.

ZachCook commented 11 years ago

Okay, I will prioritize fixing Touch2Tuio