Hi *,

I submitted a patch to enable MultiTouch Support for Windows 7 and above.

A first patch featured a CMAKE Variable WIN32_MUTITOUCH controlling support for Multitouch on Windows.

Furthermore:

* It depends on a recent SDK (Which is part of Visual Studio 2010, but not by default part of VS 2008).

* It updated the WIN_VER Variable to use the WIN7 API, iff WIN32_MUTITOUCH is enabled

* It did call Win7 (Vista and upwards?) specific API's, breaking OSG on for instance Win XP.

Robert rejected it because of these shortcomings and proposed to discuss other ways to use this API on osg-users.

I now propose a different patch:

* It should now work with all Visual Studio Versions.
* WIN_VER is left as-is
* I added the missing declarations from a recent SDK, if not supplied by the SDK
* If someone chooses to update WIN_VER, the declarations should not break.
* All API Calls are runtime detected.
* No CMake Variable, Support is enabled automatically .

What do you think? Please find attached a zip of the changed GraphicsWindowWin32.cpp as of SVN trunk of yesterday.

Greetings,
  Olaf

BTW: Maybe there is a transformation of coordinates of touchpoints missing...

Attachment: multitouch.tgz
Description: application/compressed-tar

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to