add hotkey config values.

duplicate DlgInputConfig so that it can also do hotkey config.
also prevent from opening those config dialogs a billion times.
This commit is contained in:
StapleButter
2018-12-14 03:32:40 +01:00
parent cb1e6ce750
commit ff1e21733d
7 changed files with 203 additions and 93 deletions

View File

@ -34,6 +34,9 @@ const char* kConfigFile = "melonDS.ini";
int KeyMapping[12];
int JoyMapping[12];
int HKKeyMapping[HK_MAX];
int HKJoyMapping[HK_MAX];
int WindowWidth;
int WindowHeight;
@ -90,6 +93,12 @@ ConfigEntry ConfigFile[] =
{"Joy_X", 0, &JoyMapping[10], -1, NULL, 0},
{"Joy_Y", 0, &JoyMapping[11], -1, NULL, 0},
{"HKKey_Lid", 0, &HKKeyMapping[HK_Lid], 0x0E, NULL, 0},
{"HKKey_Mic", 0, &HKKeyMapping[HK_Mic], 0x35, NULL, 0},
{"HKJoy_Lid", 0, &HKJoyMapping[HK_Lid], -1, NULL, 0},
{"HKJoy_Mic", 0, &HKJoyMapping[HK_Mic], -1, NULL, 0},
{"WindowWidth", 0, &WindowWidth, 256, NULL, 0},
{"WindowHeight", 0, &WindowHeight, 384, NULL, 0},