11 #ifndef TCMENU_DRAWABLETOUCHCALIBRATOR_H
12 #define TCMENU_DRAWABLETOUCHCALIBRATOR_H
14 #include <PlatformDetermination.h>
15 #include "../graphics/GraphicsDeviceRenderer.h"
16 #include "../graphics/MenuTouchScreenEncoder.h"
26 virtual bool loadCalibration() = 0;
27 virtual void saveCalibration() = 0;
28 virtual void reCalibrateNow() = 0;
35 typedef void (*IoaCalibrationScreenPrep)(
bool starting);
46 const uint16_t calibrationMagicIoa = 0xd00d;
52 int oldX = 0, oldY = 0;
53 iotouch::CalibrationHandler calibrationHandler {};
55 bool needsRedrawing =
false;
59 : drawable(
nullptr), touchScreen(touchScreen), renderer(renderer), romPos(romPos) {
69 void initCalibration(IoaCalibrationScreenPrep screenPrepFn,
bool presentUiUninitialised) {
70 this->screenPrep = screenPrepFn;
RenderPressMode
Definition: BaseRenderers.h:50
void(* IoaCalibrationScreenPrep)(bool starting)
Definition: DrawableTouchCalibrator.h:35
Definition: BaseRenderers.h:76
Definition: DeviceDrawable.h:34
Definition: GraphicsDeviceRenderer.h:59