Closed maujabur closed 10 years ago
This was compiled with Visual Studio 2012 I believe, if you want to try rebuilding yourself before @KiwiStrongis can get to it.
We should link the previous discussion here too: https://github.com/vialab/SMT/issues/170
I guess I found the problem on windows 7!!
on TouchHook.cpp the following line (51) is commented out:
//const ULONG TOUCH_FLAGS(/*TWF_FINETOUCH|*/TWF_WANTPALM);
and this one was changed (228) from the original:
RegisterTouchWindow(msg->hwnd, 0);
I propose changing them to
const ULONG TOUCH_FLAGS_2(/*TWF_FINETOUCH|*/TWF_WANTPALM);
and
RegisterTouchWindow(msg->hwnd, TOUCH_FLAGS_2);
I had to change the const name in order to compile for windows 8 without errors.
I'll test it on windows 8 later to see if it keeps working as well.
If you've fixed it, feel free to send a pull request. I'll merge and do a quick verification :).
Fixed as of b98633095b19dbcfc7eb8e7d23f629530f652752, but it still needs to be tested on windows 8.
Needs to be compiled and tested on Windows 7 as well.
Background: I've been testing the SMT library that uses Touch2Tuio.
On WINDOWS 7 it does not behave exactly as I expected (but runs fine on W8).
The problem is that it does not recognize touches until I move the finger or double click the surface.
I was able to detect that the problem is in this version of Touch2Tuio and his DLL.
I ran a Tuio Dump program and got the following output:
Note that there are very few milliseconds between the add and remove cursor, or between add and update cursor.
I've tested this in several different machines and touch enabled displays and got the same resuilts. And I tested it on one machine running windows 8 and it was working fine.
If I use the version 0.2 of the program found here: http://dm.tzi.de/touch2tuio/ the touches are recognized fine (but it has a nasty delay on the touch up, but that you already know)
Thanks!