diff options
author | Nicholas Rishel <rishel.nick@gmail.com> | 2020-05-26 07:16:14 +0300 |
---|---|---|
committer | Nicholas Rishel <rishel.nick@gmail.com> | 2020-10-31 02:29:04 +0300 |
commit | 759957190493b633138155502e2742985f2ed827 (patch) | |
tree | 0decf6721d44181494f5b63e3999f04eb5ead8b1 /intern | |
parent | a080accdb67e53010e31e4fe647d91cdd73d3b2a (diff) |
Adding explanitory comment to explain why tablet API check is necessary
for Pointer input even when Wintab should be preventing Pointer events.
Signed-off-by: Nicholas Rishel <rishel.nick@gmail.com>
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 34d4940de1d..3af504e6803 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -1044,7 +1044,8 @@ GHOST_TSuccess GHOST_SystemWin32::processWintabEvents(GHOST_TEventType type, // // Wintab button up events may be handled during WM_MOUSEMOVE, before their corresponding // WM_*BUTTONUP event has fired, which results in two GHOST Button up events for a single Wintab - // associated button event. Because Wintab and their associated Windows mouse events are handled asynchronously, and there's no way to turn off + // associated button event. Because Wintab and their associated Windows mouse events are handled + // asynchronously, and there's no way to turn off if (unhandledButton) { system->pushEvent(new GHOST_EventButton( system->getMilliSeconds(), type, window, mask, GHOST_TABLET_DATA_NONE)); @@ -1059,6 +1060,8 @@ void GHOST_SystemWin32::processPointerEvents( std::vector<GHOST_PointerInfoWin32> pointerInfo; GHOST_SystemWin32 *system = (GHOST_SystemWin32 *)getSystem(); + // Pointer events might fire when changing windows for a device which is set to use Wintab, even + // when when Wintab is left enabled but set to the bottom of Wintab overlap order. if (!window->useTabletAPI(GHOST_kTabletNative)) { return; } |