1
1

Compare commits

...

1 Commits

Author SHA1 Message Date
0d4fd9c402 Test fix. 2021-12-02 21:49:31 -08:00
3 changed files with 12 additions and 0 deletions

View File

@@ -1607,6 +1607,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
if (inRange) {
/* Some devices don't emit WT_CSRCHANGE events, so update cursor info here. */
wt->updateCursorInfo();
wt->enterRange();
}
else {
wt->leaveRange();

View File

@@ -247,6 +247,12 @@ void GHOST_Wintab::leaveRange()
m_fpPacketsGet(m_context.get(), m_pkts.size(), m_pkts.data());
}
void GHOST_Wintab::enterRange()
{
/* Placeholder to signal tablet in range, necessary to disable mouse input handling. */
m_lastTabletData.Active = GHOST_kTabletModeStylus;
}
void GHOST_Wintab::remapCoordinates()
{
LOGCONTEXT lc = {0};

View File

@@ -91,6 +91,11 @@ class GHOST_Wintab {
*/
void loseFocus();
/**
* Updates tablet state to indicate tablet is in range.
*/
void enterRange();
/**
* Clean up when Wintab leaves tracking range.
*/