Swadge ESP32-S2
APIs to develop for the Magfest Swadge
Loading...
Searching...
No Matches
modeIncludeList.h
Go to the documentation of this file.
1
21
22//==============================================================================
23// Includes
24//==============================================================================
25
26/*
27 Quickly regenerate with:
28 grep -lirE '^extern swadgeMode_t (.*);' main | grep -oE '([^/]+\.h)' \
29 | grep -v quickSettings | awk '{printf "#include \"%s\"\n",$1 }' | sort
30*/
31
32#include "accelTest.h"
33#include "atrium.h"
34#include "canvas.h"
35#include "colorchord.h"
36#include "dance.h"
37#include "factoryTest.h"
38#include "gamepad.h"
39#include "introMode.h"
40#include "jukebox.h"
41#include "keebTest.h"
42#include "mainMenu.h"
43#include "mode_ch32v003test.h"
44#include "mode_credits.h"
45#include "mode_synth.h"
46#include "nameTest.h"
47#include "roboRunner.h"
48#include "sonaTest.h"
49#include "swadgePassTest.h"
50#include "swsnCreator.h"
51#include "touchTest.h"
52#include "trophyCase.h"
53#include "trophyTest.h"
54#include "tunernome.h"
55
56//==============================================================================
57// Function Prototypes
58//==============================================================================
59
65int modeListGetCount(void);
66
72void modeListSetMenu(menu_t* menu);
73
80
87int32_t getModeIdx(const swadgeMode_t* mode);
88
89//==============================================================================
90// Externs
91//==============================================================================
92
93extern swadgeMode_t* const allSwadgeModes[];
struct _menu_t menu_t
The underlying data for a menu. This fundamentally is a list of menuItem_t.
Definition menu.h:153
swadgeMode_t *const allSwadgeModes[]
Add swadgeMode_t pointers to this struct to include them in emulator and main menu.
Definition modeIncludeList.c:18
int modeListGetCount(void)
Gets the current number of swadgeModes present int he file.
Definition modeIncludeList.c:29
void modeListAddSecretMenuModes(menu_t *menu)
Add secret items to a menu.
Definition modeIncludeList.c:64
void modeListSetMenu(menu_t *menu)
Initializes a menu with all the current swadge modes.
Definition modeIncludeList.c:34
int32_t getModeIdx(const swadgeMode_t *mode)
Get the unique index of a mode.
Definition modeIncludeList.c:79
A struct of all the function pointers necessary for a swadge mode. If a mode does not need a particul...