tablet: added option to hide cursor (#12525)

This commit is contained in:
fuyu147 2025-12-19 11:14:22 -05:00 committed by GitHub
parent 6175ecd4c4
commit 315806f598
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 25 additions and 4 deletions

View file

@ -216,9 +216,11 @@ void CInputManager::onTabletProximity(CTablet::SProximityEvent e) {
PTOOL->m_active = e.in;
if (!e.in) {
m_lastInputTablet = false;
if (PTOOL->getSurface())
unfocusTool(PTOOL);
} else {
m_lastInputTablet = true;
simulateMouseMovement();
refocusTablet(PTAB, PTOOL);
}