Add tablet data to Wintab fallback cursor movement.
This commit is contained in:
parent
3844e9dbe7
commit
60c0b79256
Notes:
blender-bot
2023-02-14 11:42:40 +01:00
Referenced by issue #92995, Mouse Drag Threshold used instead of Tablet Drag Threshold Referenced by issue #92787, Cursor jumping to edge of screen when lifting pen from tablet area (wintab) Referenced by issue #92751, Grease Pencil: Eraser Brush ends on maximum radius Referenced by issue #90889, Wintab temporarily lacks pressure when switching windows Referenced by issue #89520, The Fly Navigation starts panning unintentionally when used with a tablet. Referenced by issue #89341, No pressure for tablet in mouse mode.
|
@ -1002,10 +1002,10 @@ void GHOST_SystemWin32::processWintabEvent(GHOST_WindowWin32 *window)
|
|||
DWORD pos = GetMessagePos();
|
||||
int x = GET_X_LPARAM(pos);
|
||||
int y = GET_Y_LPARAM(pos);
|
||||
GHOST_TabletData td = wt->getLastTabletData();
|
||||
|
||||
/* TODO supply tablet data */
|
||||
system->pushEvent(new GHOST_EventCursor(
|
||||
system->getMilliSeconds(), GHOST_kEventCursorMove, window, x, y, GHOST_TABLET_DATA_NONE));
|
||||
system->getMilliSeconds(), GHOST_kEventCursorMove, window, x, y, td));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue