I was coding with the TouchInjection API all the day and I think it is what we always wanted in terms of WM_TOUCH.
Within a few hours I was able to combine a TUIO sample from reactivision with the TouchInjection sample from MSDN. After some trouble with the screen edges I’m now able to singletouch and open the charms. My code checks the screen resolution every second to respond to changes. (This is something I was always missing with MTV, as I got the TV attached as a second screen. I found my application to be very stable, fast and healthy in this matter =)
In the MSDN forum I found a thread where they tried to use the API in C#. It seems they were successful, but I wasn’t so far.
As my C++ skills are very ‘limited’ (I even failed to create a new project, instead of modifying the existing TUIO sample..) I’ll have a further look into the C# approach. I mailed one of the guys in the thread some questions..
TouchInjection cheat sheet
* only make one InjectTouchInput call per frame, otherwise multitouch won’t work -> you have to cache the incoming TUIO Information and send them in the |refresh| method. Don’t ask me how…
* use tcur->getScreenX(screenWidth) to scale the value to the screen. Don’t do it yourself, or the charms/edges won’t work
* (I think) there’s a bug with the OnScreenKeyboard - it does not respond to touches (I asked in the MSDN forums)
have a nice evening everybody^
EDIT: I got the TouchInjection API working in a C#/WPF application. The next step will be to mix it with a C# TUIO client…
EDIT: The WPF TUIO client works as well 8)