*/}}
Browse Source

wintab z sometimes not work

YimingWu 3 months ago
parent
commit
33fa8156e0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      la_kernel.c

+ 4 - 2
la_kernel.c

@@ -324,8 +324,10 @@ void la_OpenWacomWinTab(HWND hwnd){
 	assert(wWTInfoRetVal == sizeof(AXIS));
 
     wWTInfoRetVal = gpWTInfoA(WTI_DEVICES, DVC_Z, &TabletZ);
-    assert(wWTInfoRetVal == sizeof(AXIS));
-    MAIN.WinTabMaxHover = TabletZ.axMax;
+    if (wWTInfoRetVal) {
+        assert(wWTInfoRetVal == sizeof(AXIS));
+        MAIN.WinTabMaxHover = TabletZ.axMax;
+    }
 
     AXIS tabletPressure = { 0 };
     gpWTInfoA(WTI_DEVICES, DVC_NPRESSURE, &tabletPressure); MAIN.WinTabMaxPenPressure = tabletPressure.axMax + 1;