This commit is contained in:
2025-03-22 23:30:52 +01:00
parent 6b16abda6a
commit 9780a36af4
18 changed files with 114 additions and 29 deletions

View File

@@ -137,17 +137,17 @@ void resetKeybindFile(int layout) {
keybinds.insert({HOLD, sfKey::Z});
}
char contentChar;
char byte;
for (Action action : ACTION_LIST_IN_ORDER) {
contentChar = action;
layoutFile.write(&contentChar, 1);
byte = action;
layoutFile.write(&byte, 1);
if (keybinds.contains(action)) {
contentChar = (int) keybinds.at(action);
layoutFile.write(&contentChar, 1);
byte = (int) keybinds.at(action);
layoutFile.write(&byte, 1);
}
contentChar = 0xFF;
layoutFile.write(&contentChar, 1);
byte = 0xFF;
layoutFile.write(&byte, 1);
}
}