Feature/scroll indication (#3)

Add scroll arrows when there are more items in the list than the list can show at a time.

These arrows can be shown in the main menu (although there aren't enough items in there to have them shown) or in the various DistributionEventPokemonListScene menus.

I also did provisions to support the same for the ScrollWidget in the about screen. Although I haven't implemented that (yet?)
This commit is contained in:
Philippe Symons
2024-08-22 21:45:31 +02:00
committed by GitHub
parent bc7733cc36
commit 90bb9ccceb
14 changed files with 361 additions and 54 deletions

View File

@@ -3,13 +3,13 @@
#include <libdragon.h>
enum class UINavigationKey
enum class UINavigationDirection
{
NONE,
UP,
RIGHT,
DOWN,
LEFT
LEFT,
MAX
};
enum class NavigationInputSourceType
@@ -24,6 +24,6 @@ enum class NavigationInputSourceType
* This function determines whether the joypad_inputs_t has analog or dpad positions/presses that could be considered for UI navigation.
* If so, it will return the most prominent direction.
*/
const UINavigationKey determineUINavigationKey(joypad_inputs_t inputs, NavigationInputSourceType sourceType);
const UINavigationDirection determineUINavigationDirection(joypad_inputs_t inputs, NavigationInputSourceType sourceType);
#endif