Co-authored-by: Uri Tauber <uritaube@gmail.com>
This commit is contained in:
@@ -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}; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user