keybinds menu

This commit is contained in:
2025-03-25 17:17:36 +01:00
parent c168cd68d7
commit de8a5e6e34
20 changed files with 252 additions and 7 deletions

View File

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