From a91ba5a9d7ced85277ad60f1dbf381192f5c5ed8 Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 19 Oct 2023 20:12:24 -0500 Subject: update --- 12key-arduino/ModeMenu.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 12key-arduino/ModeMenu.h (limited to '12key-arduino/ModeMenu.h') diff --git a/12key-arduino/ModeMenu.h b/12key-arduino/ModeMenu.h new file mode 100644 index 0000000..7203b30 --- /dev/null +++ b/12key-arduino/ModeMenu.h @@ -0,0 +1,13 @@ +#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; + } +}; -- cgit v1.2.1