fichier settings

This commit is contained in:
2025-03-22 22:03:57 +01:00
parent 30dd323e22
commit 6b16abda6a
7 changed files with 138 additions and 25 deletions

View File

@@ -8,13 +8,17 @@
using sfKey = sf::Keyboard::Key;
static const int NUMBER_OF_KEYBINDS = 5;
static const int CUSTOMIZABLE_KEYBINDS = NUMBER_OF_KEYBINDS - 1;
class Keybinds {
private:
std::map<Action, std::vector<sfKey>> keybinds;
int layoutNumber;
public:
Keybinds();
Keybinds(int layoutNumber);
void loadKeybindsFromFile();