diff src/video/win32/SDL_win32mouse.c @ 2726:f23ebf1ddac4

Dynamically load wintab32.dll
author Sam Lantinga <slouken@libsdl.org>
date Tue, 26 Aug 2008 06:03:48 +0000
parents 0e2b65f32298
children 2768bd7281e0
line wrap: on
line diff
--- a/src/video/win32/SDL_win32mouse.c	Tue Aug 26 05:57:41 2008 +0000
+++ b/src/video/win32/SDL_win32mouse.c	Tue Aug 26 06:03:48 2008 +0000
@@ -154,7 +154,7 @@
         l = SDL_strlen(device_name);
 
         /* we're checking if the device isn't by any chance a tablet */
-        if (tablet == -1) {
+        if (data->wintabDLL && tablet == -1) {
             for (j = 0; j < l - 5; ++j) {
                 for (k = 0; k < 5; ++k) {
                     if (tab[k] !=
@@ -173,8 +173,8 @@
         if (tablet == index) {
             AXIS pressure;
             int cursors;
-            WTInfo(WTI_DEVICES, DVC_NPRESSURE, &pressure);
-            WTInfo(WTI_DEVICES, DVC_NCSRTYPES, &cursors);
+            data->WTInfo(WTI_DEVICES, DVC_NPRESSURE, &pressure);
+            data->WTInfo(WTI_DEVICES, DVC_NCSRTYPES, &cursors);
             data->mouse =
                 SDL_AddMouse(&mouse, index, device_name, pressure.axMax,
                              pressure.axMin, cursors);