|
@@ -50,6 +50,9 @@ touch_calibration_t Touch::calibration;
|
50
|
50
|
calibrationState Touch::calibration_state = CALIBRATION_NONE;
|
51
|
51
|
touch_calibration_point_t Touch::calibration_points[4];
|
52
|
52
|
#endif
|
|
53
|
+#if HAS_RESUME_CONTINUE
|
|
54
|
+ extern bool wait_for_user;
|
|
55
|
+#endif
|
53
|
56
|
|
54
|
57
|
void Touch::init() {
|
55
|
58
|
calibration_reset();
|
|
@@ -80,6 +83,15 @@ void Touch::idle() {
|
80
|
83
|
now = millis();
|
81
|
84
|
|
82
|
85
|
if (get_point(&_x, &_y)) {
|
|
86
|
+ #if HAS_RESUME_CONTINUE
|
|
87
|
+ // UI is waiting for a click anywhere?
|
|
88
|
+ if (wait_for_user) {
|
|
89
|
+ touch_control_type = CLICK;
|
|
90
|
+ ui.lcd_clicked = true;
|
|
91
|
+ return;
|
|
92
|
+ }
|
|
93
|
+ #endif
|
|
94
|
+
|
83
|
95
|
#if LCD_TIMEOUT_TO_STATUS
|
84
|
96
|
ui.return_to_status_ms = now + LCD_TIMEOUT_TO_STATUS;
|
85
|
97
|
#endif
|