Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/input/kis_input_manager.cpp
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #include "kis_input_manager.h" | 21 | #include "kis_input_manager.h" | ||
22 | 22 | | |||
23 | #include <kis_debug.h> | 23 | #include <kis_debug.h> | ||
24 | #include <QQueue> | 24 | #include <QQueue> | ||
25 | #include <klocalizedstring.h> | 25 | #include <klocalizedstring.h> | ||
26 | #include <QApplication> | 26 | #include <QApplication> | ||
27 | #include <QTouchEvent> | 27 | #include <QTouchEvent> | ||
28 | #include <QTouchEvent> | 28 | #include <QElapsedTimer> | ||
29 | 29 | | |||
30 | #include <KoToolManager.h> | 30 | #include <KoToolManager.h> | ||
31 | 31 | | |||
32 | #include "kis_tool_proxy.h" | 32 | #include "kis_tool_proxy.h" | ||
33 | 33 | | |||
34 | #include <kis_config.h> | 34 | #include <kis_config.h> | ||
35 | #include <kis_canvas2.h> | 35 | #include <kis_canvas2.h> | ||
36 | #include <KisViewManager.h> | 36 | #include <KisViewManager.h> | ||
▲ Show 20 Lines • Show All 424 Lines • ▼ Show 20 Line(s) | 445 | case QEvent::TabletPress: { | |||
461 | break; | 461 | break; | ||
462 | } | 462 | } | ||
463 | case QEvent::TabletMove: { | 463 | case QEvent::TabletMove: { | ||
464 | d->debugEvent<QTabletEvent, false>(event); | 464 | d->debugEvent<QTabletEvent, false>(event); | ||
465 | 465 | | |||
466 | QTabletEvent *tabletEvent = static_cast<QTabletEvent*>(event); | 466 | QTabletEvent *tabletEvent = static_cast<QTabletEvent*>(event); | ||
467 | retval = compressMoveEventCommon(tabletEvent); | 467 | retval = compressMoveEventCommon(tabletEvent); | ||
468 | 468 | | |||
469 | if (d->tabletLatencyTracker) { | ||||
470 | d->tabletLatencyTracker->push(tabletEvent->timestamp()); | ||||
471 | } | ||||
472 | | ||||
469 | /** | 473 | /** | ||
470 | * The flow of tablet events means the tablet is in the | 474 | * The flow of tablet events means the tablet is in the | ||
471 | * proximity area, so activate it even when the | 475 | * proximity area, so activate it even when the | ||
472 | * TabletEnterProximity event was missed (may happen when | 476 | * TabletEnterProximity event was missed (may happen when | ||
473 | * changing focus of the window with tablet in the proximity | 477 | * changing focus of the window with tablet in the proximity | ||
474 | * area) | 478 | * area) | ||
475 | */ | 479 | */ | ||
476 | d->blockMouseEvents(); | 480 | d->blockMouseEvents(); | ||
▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines |