1
1

Compare commits

...

1 Commits

Author SHA1 Message Date
e9e608d23e Attempt fix T90952 2021-09-10 16:40:38 -07:00
2 changed files with 5 additions and 2 deletions

View File

@@ -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));
}
}

View File

@@ -150,6 +150,7 @@ void GHOST_Wintab::modifyContext(LOGCONTEXT &lc)
lc.lcPktMode = PACKETMODE;
lc.lcMoveMask = PACKETDATA;
lc.lcOptions |= CXO_CSRMESSAGES | CXO_MESSAGES;
lc.lcBtnUpMask = lc.lcBtnDnMask = ~0;
/* Tablet scaling is handled manually because some drivers don't handle HIDPI or multi-display
* correctly; reset tablet scale factors to un-scaled tablet coordinates. */