minch-dev / tuio2wintab

Provides wintab32.dll driver implementation for TUIO interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TUIO to WINTAB driver

Copyright (c) Dmitry Minchenko.

- THIS IS A WORK IN PROGRESS (THAT WAS HALTED DUE TO W**)

Description:

Provides wintab32.dll implementation for TUIO interface to increase cursor positioning precision. Available TUIO mouse and touch drivers only allow pixel-precision, which is tied to screen resolution, which limits the quality of strokes and lines drawn with the TUIO device. By contrast TUIO2WINTAB driver allows to transfer the cursor positions reported by TUIO as precisely as possible to any software that supports WINTAB library, essentially turning CCV device into a proper graphics tablet.

Usage:

Ready to use DLLs are provided in DLL folder alongside with bat scripts that can copy the dlls into respective folders (if you're too lazy to do it yourself). The wordy and quite descriptive example .ini file is also there. Dlls are unsigned, but somehow it works for me this way, maybe it's because I didn't implement any installation process and just copy-pasted drivers with batch files or by hand. Currently the driver works with mouse buttons as providers for click events and TUIO for the coordinates. It's a subject to change, I was working on release for this project when the madness started, so sadly I had to drop it to focus on dealing with IRL.

Settings

Initially it worked like this: Global Wintab32.ini file can optinally be placed in windows folder, and you can override it per application by placing separate Wintab32.ini alongside program's .exe file. If you don't need CCV touch functionality to be available system-wide you can avoid global settings file and simply create an individual .ini for each desired application. This driver only works when .ini is present in at least one of the two places.

But at some point I decided to get rid of the global file and only left per app .ini files. Also the "driver only works when .ini is present" went out of the window, so it just loads defaults when no .ini file is there. It might be a good idea to bring initial behaviour back.

Inkscape 0.91 x86

Might be quite frustrating to be desperately trying to make it work in Inkscape to only realize that you have to manually turn on tablet functionality through "input devices" panel. Oh and don't forget that it requires restart as well! I love Inkscape anyways.

Inkscape 0.91 x64

Something weird happens with this version, there is an issue opened for it. Doesn't work for now.

Illustrator

To my surprise it actually works in Illustrator. Not that I'm going to use it any time soon, but someone might find it quite handy.

Build:

Use Visual Studio Express 2013 to build dlls. Solution is configured to copy x86/x64 driver versions right into SysWOW64/System32 folders respectively when the build is finished. It overwrites existing dlls, so be careful.

License:

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307USA

References:

This driver uses the TUIO library, some structures from WintabEmulator, also borrows some essential structural parts from sample wintab32 project provided by Wacom

About

Provides wintab32.dll driver implementation for TUIO interface

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 90.2%Language:C 6.5%Language:JavaScript 1.7%Language:HTML 0.8%Language:Makefile 0.6%Language:CSS 0.2%Language:Batchfile 0.1%