Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/krita/ui/input/wintab/kis_tablet_support_x11.cpp b/krita/ui/input/wintab/kis_tablet_support_x11.cpp
- index 8a6c975..4b51f04 100644
- --- a/krita/ui/input/wintab/kis_tablet_support_x11.cpp
- +++ b/krita/ui/input/wintab/kis_tablet_support_x11.cpp
- @@ -305,6 +305,15 @@ void kis_x11_init_tablet()
- device_data.maxTanPressure = 0;
- device_data.minZ = 0;
- device_data.maxZ = 0;
- +
- + qDebug() << "=== Getting tablet limits ===";
- + qDebug() << ppVar(a[0].min_value) << ppVar(a[0].max_value);
- + qDebug() << ppVar(a[1].min_value) << ppVar(a[1].max_value);
- + qDebug() << ppVar(a[2].min_value) << ppVar(a[2].max_value) << " <-- pressure";
- + qDebug() << ppVar(a[3].min_value) << ppVar(a[3].max_value);
- + qDebug() << ppVar(a[4].min_value) << ppVar(a[4].max_value);
- + qDebug() << ppVar(a[5].min_value) << ppVar(a[5].max_value);
- + qDebug() << "=============================";
- #endif
- // got the max pressure no need to go further...
- @@ -501,6 +510,16 @@ bool translateXinputEvent(const XEvent *ev, QTabletDeviceData *tablet, QWidget *
- hiRes = tablet->scaleCoord(motion->axis_data[0], motion->axis_data[1],
- screenArea.x(), screenArea.width(),
- screenArea.y(), screenArea.height());
- +
- + qDebug() << "*** MotionEvent ***";
- + qDebug() << ppVar(pressure);
- + qDebug() << ppVar(rotation);
- + qDebug() << ppVar(xTilt) << ppVar(yTilt);
- + qDebug() << ppVar(motion->deviceid);
- + qDebug() << ppVar(tablet->minPressure) << ppVar(tablet->maxPressure);
- + qDebug() << "*******************";
- +
- +
- } else if (button) {
- xTilt = (short) button->axis_data[3];
- yTilt = (short) button->axis_data[4];
- diff --git a/krita/ui/tool/kis_tool_freehand.cc b/krita/ui/tool/kis_tool_freehand.cc
- index deae910..65cf4a5 100644
- --- a/krita/ui/tool/kis_tool_freehand.cc
- +++ b/krita/ui/tool/kis_tool_freehand.cc
- @@ -172,6 +172,9 @@ bool KisToolFreehand::primaryActionSupportsHiResEvents() const
- void KisToolFreehand::beginPrimaryAction(KoPointerEvent *event)
- {
- + qDebug() << "## Begin stroke" << ppVar(event->pos()) << ppVar(event->globalPos()) << ppVar(event->point) << ppVar(event->pressure());
- +
- +
- // FIXME: workaround for the Duplicate Op
- tryPickByPaintOp(event, PickFgImage);
- @@ -201,6 +204,8 @@ void KisToolFreehand::beginPrimaryAction(KoPointerEvent *event)
- void KisToolFreehand::continuePrimaryAction(KoPointerEvent *event)
- {
- + qDebug() << "## Conti stroke" << ppVar(event->pos()) << ppVar(event->globalPos()) << ppVar(event->point) << ppVar(event->pressure());
- +
- KIS_ASSERT_RECOVER_RETURN(mode() == KisTool::PAINT_MODE);
- requestUpdateOutline(event->point);
- @@ -213,6 +218,8 @@ void KisToolFreehand::continuePrimaryAction(KoPointerEvent *event)
- void KisToolFreehand::endPrimaryAction(KoPointerEvent *event)
- {
- + qDebug() << "## End stroke" << ppVar(event->pos()) << ppVar(event->globalPos()) << ppVar(event->point) << ppVar(event->pressure());
- +
- Q_UNUSED(event);
- KIS_ASSERT_RECOVER_RETURN(mode() == KisTool::PAINT_MODE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement