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

@@ -142,7 +142,7 @@ void Settings::saveSettingsToFile() const {
}
bool Settings::selectNextKeybinds() {
if (this->chosenKeybinds < NUMBER_OF_KEYBINDS) {
if (this->chosenKeybinds < (NUMBER_OF_KEYBINDS - 1)) {
this->chosenKeybinds++;
return true;
}
@@ -246,6 +246,10 @@ Keybinds& Settings::getKeybinds() {
return this->keybinds.at(this->chosenKeybinds);
}
int Settings::getKeybindsLayout() const {
return this->chosenKeybinds;
}
Gamemode Settings::getGamemode() const {
return this->gamemode;
}