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

Co-authored-by: Uri Tauber <uritaube@gmail.com>
This commit is contained in:
RoninandUri Tauber authored and GitHub committed 2026-06-15 22:19:34 +03:00
1 parent 55a56914d7
commit 02bab00be6
5 files changed
+45 -18

No files matched your search

+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}; }
};