[Bf-blender-cvs] [239e5efb602] wintab_fallback_walknav: Supply tablet data in mouse fallback for Wintab cursor movement.
Nicholas Rishel
noreply at git.blender.org
Tue Jul 6 00:42:39 CEST 2021
Commit: 239e5efb6023712e7c1ba192c1abea2f4b332e3a
Author: Nicholas Rishel
Date: Mon Jul 5 15:39:17 2021 -0700
Branches: wintab_fallback_walknav
https://developer.blender.org/rB239e5efb6023712e7c1ba192c1abea2f4b332e3a
Supply tablet data in mouse fallback for Wintab cursor movement.
===================================================================
M intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index e2cc37b0d16..255eeea92fb 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1003,9 +1003,8 @@ void GHOST_SystemWin32::processWintabEvent(GHOST_WindowWin32 *window)
int x = GET_X_LPARAM(pos);
int y = GET_Y_LPARAM(pos);
- /* TODO supply tablet data */
system->pushEvent(new GHOST_EventCursor(
- system->getMilliSeconds(), GHOST_kEventCursorMove, window, x, y, GHOST_TABLET_DATA_NONE));
+ system->getMilliSeconds(), GHOST_kEventCursorMove, window, x, y, wt->getLastTabletData()));
}
}
More information about the Bf-blender-cvs
mailing list