Options refactor part 3: added key bindings for menu shortcuts.

Issue #168.
This commit is contained in:
Muzychenko Andrey committed 2023-02-11 13:18:29 +03:00
1 parent 8df996f452
commit 215599684c
7 files changed
+176 -80

No files matched your search

+12 -1
View File
@@ -51,7 +51,9 @@ struct GameInput
return Type == other.Type && Value == other.Value;
}
std::string GetInputDescription() const;
std::string GetFullInputDescription() const;
std::string GetShortInputDescription() const;
};
enum class GameBindings
@@ -63,6 +65,13 @@ enum class GameBindings
LeftTableBump,
RightTableBump,
BottomTableBump,
NewGame,
TogglePause,
ToggleFullScreen,
ToggleSounds,
ToggleMusic,
ShowControlDialog,
ToggleMenuDisplay,
Max
};
@@ -234,6 +243,8 @@ struct ControlOption : OptionBase
{
std::copy(std::begin(Defaults), std::end(Defaults), std::begin(Inputs));
}
std::string GetShortcutDescription() const;
};
struct optionsStruct