Fix inverted tilt behaviour

This commit is contained in:
jpirnay
2026-05-14 17:23:31 +02:00
parent e02049514b
commit da9ebb50e3
+2 -2
View File
@@ -96,8 +96,8 @@ inline PageTurnResult detectPageTurn(const MappedInputManager& input) {
// because the button event system delays short events until the double-click window expires.
using BA = CrossPointSettings::BUTTON_ACTION;
using TA = CrossPointSettings::TILT_GESTURE_ACTION;
const bool tiltNegative = SETTINGS.tiltPageTurn && halTiltSensor.wasTiltedBack();
const bool tiltPositive = SETTINGS.tiltPageTurn && halTiltSensor.wasTiltedForward();
const bool tiltNegative = SETTINGS.tiltPageTurn && halTiltSensor.wasTiltedForward();
const bool tiltPositive = SETTINGS.tiltPageTurn && halTiltSensor.wasTiltedBack();
bool tiltPrev = false;
bool tiltNext = false;
auto applyTiltAction = [&](uint8_t action) {