Swadge ESP32-S2/S3
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 "gottaGo.h"
40#include "introMode.h"
41#include "jukebox.h"
42#include "keebTest.h"
43#include "mainMenu.h"
44#include "mode_ch32v003test.h"
45#include "mode_credits.h"
46#include "mode_synth.h"
47#include "nameTest.h"
48#include "roboRunner.h"
49#include "sonaTest.h"
50#include "swadgePassTest.h"
51#include "swsnCreator.h"
52#include "touchTest.h"
53#include "trophyCase.h"
54#include "trophyTest.h"
55#include "tunernome.h"
56
57//==============================================================================
58// Function Prototypes
59//==============================================================================
60
66int modeListGetCount(void);
67
73void modeListSetMenu(menu_t* menu);
74
81
88int32_t getModeIdx(const swadgeMode_t* mode);
89
90//==============================================================================
91// Externs
92//==============================================================================
93
94extern 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:65
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:80
A struct of all the function pointers necessary for a swadge mode. If a mode does not need a particul...