WintabEmulator
WintabEmulator copied to clipboard
Emulate Wintab API using Windows 8 Pointer API.
--- WintabEmulator ---
This is a "quick hack" which uses the Windows 8 pointer API to simulate a tablet accessible via the Wintab API. (http://www.wacomeng.com/windows/docs/Wintab_v140.htm)
Specifically this was created to allow PaintToolSai to access pen pressure information on a Microsoft Surface Pro tablet. That said it may work (or be further developed) to support other programs which use the Wintab API.
- Carl Ritson [email protected]
-- Install --
- (optional) Build the program in Visual Studio 2012.
- Rename WintabEmulator.dll to wintab32.dll. If you built the DLL from source this will be in the Release directory, otherwise use the copy in the same directory as this README file.
- Copy wintab32.dll to the same directory as the program executable.
- (optional) Copy wintab.ini to the directory in step 3.
- (optional) Edit wintab.ini. This file allows configuration of a limit set of options. None of which need to be changed.
- Run your progam as normal.
-- Uninstall --
- Delete the wintab32.dll from the program directory.
- (optional) Delete the wintab.ini file if used.
-- Caveats --
When emulation is enabled the system Wintab driver is overridden and normal tablets cannot be accessed via it. That said Wacom's Windows 8 drivers provide pointer information in addition to Wintab API access.
As the focus was on PaintToolSai which makes very limited use of the Wintab API, and a Microsoft Surface Pro which only provides pressure (not tilt or rotation), many advanced features of the Wintab interface are not implemented or certainly not implemented correctly. However, I'm sure with a bit of time and appropriate hardware this could easily be fixed.