#include #include "Mode.h" class ModeMenu : public Mode { void reset() {} Mode * update(unsigned int keys) { if (keys & KEY_1) return Mode::modes[1]; if (keys & KEY_2) return Mode::modes[2]; if (keys & KEY_3) return Mode::modes[3]; return NULL; } };