fini menu keybinds

This commit is contained in:
2025-03-25 20:06:02 +01:00
parent de8a5e6e34
commit b2567844fc
10 changed files with 199 additions and 161 deletions

View File

@@ -66,7 +66,7 @@ void Keybinds::saveKeybindsToFile() const {
void Keybinds::addKey(Action action, sfKey key) {
if (!this->modifiable) return;
if (!getKeyStringRepresentation(key).has_value()) return;
if (!KEYS_TO_STRING.contains(key)) return;
this->keybinds.at(action).insert(key);
}