tablet: naive window refocusing (#10110)
Signed-off-by: Andrei V <andrei@ptaxa.net>
This commit is contained in:
parent
a3d32f3b70
commit
a3b96961a2
1 changed files with 7 additions and 0 deletions
|
|
@ -134,6 +134,7 @@ void CInputManager::onTabletAxis(CTablet::SAxisEvent e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
simulateMouseMovement();
|
||||||
refocusTablet(PTAB, PTOOL, true);
|
refocusTablet(PTAB, PTOOL, true);
|
||||||
m_tmrLastCursorMovement.reset();
|
m_tmrLastCursorMovement.reset();
|
||||||
}
|
}
|
||||||
|
|
@ -173,6 +174,9 @@ void CInputManager::onTabletTip(CTablet::STipEvent e) {
|
||||||
else
|
else
|
||||||
g_pPointerManager->warpAbsolute(transformToActiveRegion(POS, PTAB->activeArea), PTAB);
|
g_pPointerManager->warpAbsolute(transformToActiveRegion(POS, PTAB->activeArea), PTAB);
|
||||||
|
|
||||||
|
if (e.in)
|
||||||
|
refocus();
|
||||||
|
|
||||||
refocusTablet(PTAB, PTOOL, true);
|
refocusTablet(PTAB, PTOOL, true);
|
||||||
|
|
||||||
if (e.in)
|
if (e.in)
|
||||||
|
|
@ -186,6 +190,9 @@ void CInputManager::onTabletTip(CTablet::STipEvent e) {
|
||||||
void CInputManager::onTabletButton(CTablet::SButtonEvent e) {
|
void CInputManager::onTabletButton(CTablet::SButtonEvent e) {
|
||||||
const auto PTOOL = ensureTabletToolPresent(e.tool);
|
const auto PTOOL = ensureTabletToolPresent(e.tool);
|
||||||
|
|
||||||
|
if (e.down)
|
||||||
|
refocus();
|
||||||
|
|
||||||
PROTO::tablet->buttonTool(PTOOL, e.button, e.down);
|
PROTO::tablet->buttonTool(PTOOL, e.button, e.down);
|
||||||
|
|
||||||
if (e.down)
|
if (e.down)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue