diff options
author | Nicholas Rishel <rishel.nick@gmail.com> | 2021-01-11 08:13:44 +0300 |
---|---|---|
committer | Nicholas Rishel <rishel.nick@gmail.com> | 2021-01-11 08:18:46 +0300 |
commit | ab5986cf3a2eea3a8ba3f7029f936f79ade921ef (patch) | |
tree | 8cc82e6eec6f21a7a0ecb8a7f541878c38634f2a /intern/ghost/intern/GHOST_SystemWin32.cpp | |
parent | af88d23ffaab650f050886afc7595a8f6bff08b8 (diff) |
Fix T84501: Wintab button lag.
Multiple Wintab tablets do not send relative button state when
configured to do so. This causes button events to be delayed until
processed as Win32 button events.
This commit fixes the issue by configuring Wintab to use absolute
button state and tracking changes manually.
Diffstat (limited to 'intern/ghost/intern/GHOST_SystemWin32.cpp')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 181e3ad4014..5de97199fd8 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -1559,7 +1559,12 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam, break; case WT_PROXIMITY: { if (window->useTabletAPI(GHOST_kTabletWintab)) { - window->m_tabletInRange = LOWORD(lParam); + if (LOWORD(lParam)) { + window->m_tabletInRange = true; + } + else { + window->processWintabLeave(); + } } eventHandled = true; break; |