[Bf-blender-cvs] [0ee4b0b9650] master: Before a wintab button event is generated, generate a GHOST mouse move event to the button down location as this should be a more accurate point of contact than the last mouse move event.

Nicholas Rishel noreply at git.blender.org
Sat Oct 31 00:32:28 CET 2020


Commit: 0ee4b0b9650d953bc5a6e84ee5c91a8c887f9753
Author: Nicholas Rishel
Date:   Mon May 25 21:19:28 2020 -0700
Branches: master
https://developer.blender.org/rB0ee4b0b9650d953bc5a6e84ee5c91a8c887f9753

Before a wintab button event is generated, generate a GHOST mouse move
event to the button down location as this should be a more accurate point
of contact than the last mouse move event.

Signed-off-by: Nicholas Rishel <rishel.nick at gmail.com>

===================================================================

M	intern/ghost/intern/GHOST_SystemWin32.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index 3af504e6803..7a52933b258 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1015,6 +1015,8 @@ GHOST_TSuccess GHOST_SystemWin32::processWintabEvents(GHOST_TEventType type,
          * don't duplicate the prior button down as it interrupts drawing immediately after
          * changing a window.
          */
+        system->pushEvent(new GHOST_EventCursor(
+            info.time, GHOST_kEventCursorMove, window, info.x, info.y, info.tabletData));
         if (type == GHOST_kEventButtonDown && mask == info.button) {
           system->pushEvent(
               new GHOST_EventButton(info.time, info.type, window, info.button, info.tabletData));



More information about the Bf-blender-cvs mailing list