fix: update page turn logic to use power button release instead of press

This commit is contained in:
Arthur Tazhitdinov 2026-01-25 23:27:55 +05:00
parent 2411f104d9
commit 0952152879
3 changed files with 3 additions and 3 deletions

View File

@ -172,7 +172,7 @@ void EpubReaderActivity::loop() {
const bool nextTriggered = usePressForPageTurn const bool nextTriggered = usePressForPageTurn
? (mappedInput.wasPressed(MappedInputManager::Button::PageForward) || ? (mappedInput.wasPressed(MappedInputManager::Button::PageForward) ||
(SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN && (SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN &&
mappedInput.wasPressed(MappedInputManager::Button::Power)) || mappedInput.wasReleased(MappedInputManager::Button::Power)) ||
mappedInput.wasPressed(MappedInputManager::Button::Right)) mappedInput.wasPressed(MappedInputManager::Button::Right))
: (mappedInput.wasReleased(MappedInputManager::Button::PageForward) || : (mappedInput.wasReleased(MappedInputManager::Button::PageForward) ||
(SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN && (SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN &&

View File

@ -116,7 +116,7 @@ void TxtReaderActivity::loop() {
const bool nextTriggered = usePressForPageTurn const bool nextTriggered = usePressForPageTurn
? (mappedInput.wasPressed(MappedInputManager::Button::PageForward) || ? (mappedInput.wasPressed(MappedInputManager::Button::PageForward) ||
(SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN && (SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN &&
mappedInput.wasPressed(MappedInputManager::Button::Power)) || mappedInput.wasReleased(MappedInputManager::Button::Power)) ||
mappedInput.wasPressed(MappedInputManager::Button::Right)) mappedInput.wasPressed(MappedInputManager::Button::Right))
: (mappedInput.wasReleased(MappedInputManager::Button::PageForward) || : (mappedInput.wasReleased(MappedInputManager::Button::PageForward) ||
(SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN && (SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN &&

View File

@ -120,7 +120,7 @@ void XtcReaderActivity::loop() {
const bool nextTriggered = usePressForPageTurn const bool nextTriggered = usePressForPageTurn
? (mappedInput.wasPressed(MappedInputManager::Button::PageForward) || ? (mappedInput.wasPressed(MappedInputManager::Button::PageForward) ||
(SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN && (SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN &&
mappedInput.wasPressed(MappedInputManager::Button::Power)) || mappedInput.wasReleased(MappedInputManager::Button::Power)) ||
mappedInput.wasPressed(MappedInputManager::Button::Right)) mappedInput.wasPressed(MappedInputManager::Button::Right))
: (mappedInput.wasReleased(MappedInputManager::Button::PageForward) || : (mappedInput.wasReleased(MappedInputManager::Button::PageForward) ||
(SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN && (SETTINGS.shortPwrBtn == CrossPointSettings::SHORT_PWRBTN::PAGE_TURN &&