keybinds menu
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user