l'espoir renaît????

This commit is contained in:
2025-03-23 11:50:55 +01:00
parent 8635d4b853
commit 92b58c4b98
6 changed files with 72 additions and 38 deletions

View File

@@ -26,19 +26,20 @@ void Keybinds::loadKeybindsFromFile() {
}
char byte;
while (layoutFile.get(byte)) {
if (layoutFile.eof()) break;
while (layoutFile.peek() != EOF) {
layoutFile.get(byte);
Action action = Action(byte);
do {
bool separatorMet = false;
while (!separatorMet) {
layoutFile.get(byte);
if (layoutFile.eof()) break;
if (byte != 0xFF) {
if (byte == (char) 0xFF) {
separatorMet = true;
}
else {
this->keybinds.at(action).insert(sfKey(byte));
}
} while (byte != 0xFF);
}
}
}