[Bf-blender-cvs] [60c0b792562] blender-v3.0-release: Add tablet data to Wintab fallback cursor movement.
Nicholas Rishel
noreply at git.blender.org
Wed Nov 24 02:13:38 CET 2021
Commit: 60c0b7925625ad52824f2cb43d667fc3d56597a0
Author: Nicholas Rishel
Date: Tue Nov 23 17:04:36 2021 -0800
Branches: blender-v3.0-release
https://developer.blender.org/rB60c0b7925625ad52824f2cb43d667fc3d56597a0
Add tablet data to Wintab fallback 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 5f5a89e2af1..e4630ad1ab5 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1002,10 +1002,10 @@ void GHOST_SystemWin32::processWintabEvent(GHOST_WindowWin32 *window)
DWORD pos = GetMessagePos();
int x = GET_X_LPARAM(pos);
int y = GET_Y_LPARAM(pos);
+ GHOST_TabletData td = wt->getLastTabletData();
- /* 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, td));
}
}
More information about the Bf-blender-cvs
mailing list