fix: swap reader menu navigation direction in CCW/inverted (#2321) (#2341)

Co-authored-by: Uri Tauber <uritaube@gmail.com>
This commit is contained in:
Ronin
2026-06-15 22:19:34 +03:00
committed by GitHub
co-authored by Uri Tauber
parent 55a56914d7
commit 02bab00be6
5 changed files with 45 additions and 18 deletions
+5 -7
View File
@@ -44,10 +44,8 @@ class ButtonNavigator final {
[[nodiscard]] static int nextPageIndex(int currentIndex, int totalItems, int itemsPerPage);
[[nodiscard]] static int previousPageIndex(int currentIndex, int totalItems, int itemsPerPage);
[[nodiscard]] static Buttons getNextButtons() {
return {MappedInputManager::Button::Down, MappedInputManager::Button::Right};
}
[[nodiscard]] static Buttons getPreviousButtons() {
return {MappedInputManager::Button::Up, MappedInputManager::Button::Left};
}
};
// Navigation uses the logical NavNext / NavPrevious buttons; MappedInputManager::mapButton resolves
// them to physical buttons and applies any orientation-based direction swap, so this stays settings-free.
[[nodiscard]] static Buttons getNextButtons() { return {MappedInputManager::Button::NavNext}; }
[[nodiscard]] static Buttons getPreviousButtons() { return {MappedInputManager::Button::NavPrevious}; }
};