prepare for custom note/value input map

This commit is contained in:
tildearrow 2022-02-18 13:11:41 -05:00
parent 840be64314
commit 0d5aa002d3
2 changed files with 56 additions and 0 deletions

View file

@ -552,7 +552,9 @@ class FurnaceGUI {
SDL_Scancode samplePreviewKey;
int samplePreviewNote;
// SDL_Scancode,int
std::map<SDL_Scancode,int> noteKeys;
// SDL_Keycode,int
std::map<SDL_Keycode,int> valueKeys;
int arpMacroScroll;
@ -687,6 +689,9 @@ class FurnaceGUI {
void decodeMMLStr(String& source, int* macro, unsigned char& macroLen, signed char& macroLoop, int macroMin, int macroMax, signed char& macroRel);
void decodeMMLStrW(String& source, int* macro, int& macroLen, int macroMax);
String encodeKeyMap(std::map<int,int>& map);
void decodeKeyMap(std::map<int,int>& map, String source);
const char* getSystemName(DivSystem which);
public: