Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rishel <rishel.nick@gmail.com>2021-09-11 02:40:38 +0300
committerNicholas Rishel <rishel.nick@gmail.com>2021-09-11 02:40:38 +0300
commite9e608d23e64e76e14c526e075ae5c543f20aa91 (patch)
treeaeac4165d8c9e4f353578db898d68f6fa71b3359 /intern/ghost/intern/GHOST_SystemWin32.cpp
parenteab26f13347dca6f14cf961d755b987dcad404fa (diff)
Attempt fix T90952T90952
Diffstat (limited to 'intern/ghost/intern/GHOST_SystemWin32.cpp')
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index f44107ee000..b4cbc693f94 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1003,9 +1003,11 @@ void GHOST_SystemWin32::processWintabEvent(GHOST_WindowWin32 *window)
int x = GET_X_LPARAM(pos);
int y = GET_Y_LPARAM(pos);
- /* TODO supply tablet data */
+ /* TODO supply unmodified tablet data */
+ GHOST_TabletData td = wt->getLastTabletData();
+ td.Pressure = 1.0f;
system->pushEvent(new GHOST_EventCursor(
- system->getMilliSeconds(), GHOST_kEventCursorMove, window, x, y, GHOST_TABLET_DATA_NONE));
+ system->getMilliSeconds(), GHOST_kEventCursorMove, window, x, y, td));
}
}