mirror of
https://github.com/risingPhil/PokeMe64.git
synced 2026-04-25 07:26:57 -05:00
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)
29 lines
587 B
C
Executable File
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 |