Made the sensor adjust menu driven by data

* Moved menu titles and option names into data structures.
 * Unified select menu option code
 * Also unified handling of menu selection, although main and rotator menus are still handled the old way.
 * Moved struct definitions to numenu.h
 * Grouped functions and variables together based on usage.
This commit is contained in:
Mikael Degerfält 2019-06-16 14:36:03 +02:00
parent 9a0bb369ac
commit 0d0ea5051d
6 changed files with 663 additions and 1033 deletions

View file

@ -40,19 +40,6 @@ extern byte currentRotation;
extern int rotations[4];
extern int parallel; // semitones
extern const int breathLoLimit;
extern const int breathHiLimit;
extern const int portamLoLimit;
extern const int portamHiLimit;
extern const int pitchbLoLimit;
extern const int pitchbHiLimit;
extern const int extracLoLimit;
extern const int extracHiLimit;
extern const int ctouchLoLimit;
extern const int ctouchHiLimit;
extern const int ttouchLoLimit;
extern const int ttouchHiLimit;
extern int touch_Thr;
extern unsigned long cursorBlinkTime; // the last time the cursor was toggled