Skip to content

Commit 3c70ec6

Browse files
author
dave
committed
#177 improve the touch calibrator for integration into plugins
1 parent 159de01 commit 3c70ec6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/extras/DrawableTouchCalibrator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,15 @@ void IoaTouchScreenCalibrator::renderLoop(unsigned int currentValue, RenderPress
9898
void IoaTouchScreenCalibrator::giveItBack() {
9999
renderer->giveBackDisplay();
100100
renderer->setCustomDrawingHandler(lastDrawing);
101+
touchScreen->enableCalibration(true);
101102
lastDrawing = nullptr;
102103
if(screenPrep != nullptr) screenPrep(true);
103104
}
104105

105106
void IoaTouchScreenCalibrator::reCalibrateNow() {
106107
if(screenPrep != nullptr) screenPrep(true);
107108
lastDrawing = renderer->getCurrentCustomDrawing();
109+
touchScreen->enableCalibration(false);
108110
renderer->setCustomDrawingHandler(this);
109111
renderer->takeOverDisplay();
110112
}

src/extras/DrawableTouchCalibrator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ namespace tcextras {
7070
if(!loadCalibration() && presentUiUninitialised) {
7171
reCalibrateNow();
7272
}
73+
touchScreen->enableCalibration(true);
7374
}
7475

7576
/**

0 commit comments

Comments
 (0)