This commit is contained in:
2025-03-23 00:16:59 +01:00
parent 9780a36af4
commit 8635d4b853
6 changed files with 22 additions and 12 deletions

View File

@@ -26,11 +26,15 @@ void Keybinds::loadKeybindsFromFile() {
}
char byte;
while (layoutFile.get(&byte, 1)) {
while (layoutFile.get(byte)) {
if (layoutFile.eof()) break;
Action action = Action(byte);
do {
layoutFile.get(&byte, 1);
layoutFile.get(byte);
if (layoutFile.eof()) break;
if (byte != 0xFF) {
this->keybinds.at(action).insert(sfKey(byte));
}