PokeMe64/include/core/DragonUtils.h
Philippe Symons e51726eef9 Initial import of the first (extremely early) functional version.
It doesn't look like much, but it's functional ;-)

It can inject distribution pokémon into gen 1 and gen 2 original
cartridges and inject the GS ball in Pokémon Crystal.

That's it. But that was the minimal feature set I had in mind for the
project. In the Readme.md you can find the ideas I have for expanding
the project.

But the first priority is the UI, because it really looks bad right now.
(as I was mostly focused on building blocks and transfer pak
functionality. Not on making it looks good)
2024-07-19 21:46:11 +02:00

29 lines
587 B
C
Executable File

#ifndef _DRAGONUTILS_H
#define _DRAGONUTILS_H
#include <libdragon.h>
enum class UINavigationKey
{
NONE,
UP,
RIGHT,
DOWN,
LEFT
};
enum class NavigationInputSourceType
{
NONE,
ANALOG_STICK,
DPAD,
BOTH
};
/**
* 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);
#endif