diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-31 00:19:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-31 00:19:18 +0300 |
commit | 694e07d193e7c5758a7d672b45668651b034003d (patch) | |
tree | 20a4aec8dee2b3b5475db9f3667e797fb43c603b /src/defaults.cpp | |
parent | c9a84749b3b71d4df6cc3b9b488d60dc4a013a20 (diff) | |
download | manaplus-694e07d193e7c5758a7d672b45668651b034003d.tar.gz manaplus-694e07d193e7c5758a7d672b45668651b034003d.tar.bz2 manaplus-694e07d193e7c5758a7d672b45668651b034003d.tar.xz manaplus-694e07d193e7c5758a7d672b45668651b034003d.zip |
Convert InputAction enum into strong typed enum.
Diffstat (limited to 'src/defaults.cpp')
-rw-r--r-- | src/defaults.cpp | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp index c8ca23f54..dbecffe75 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -326,19 +326,25 @@ DefaultsData* getConfigDefaults() AddDEF("selfMouseHeal", true); AddDEF("serverslistupdate", ""); AddDEF("fadeoutmusic", true); - AddDEF("screenActionKeyboard", InputAction::SHOW_KEYBOARD); - AddDEF("screenActionButton0", InputAction::TALK); - AddDEF("screenActionButton1", InputAction::TARGET_ATTACK); - AddDEF("screenActionButton2", InputAction::PICKUP); - AddDEF("screenActionButton3", InputAction::STOP_SIT); - AddDEF("screenActionButton4", InputAction::TARGET_NPC); - AddDEF("screenActionButton5", InputAction::WINDOW_STATUS); - AddDEF("screenActionButton6", InputAction::WINDOW_INVENTORY); - AddDEF("screenActionButton7", InputAction::WINDOW_SKILL); - AddDEF("screenActionButton8", InputAction::WINDOW_SOCIAL); - AddDEF("screenActionButton9", InputAction::WINDOW_DEBUG); - AddDEF("screenActionButton10", InputAction::CHANGE_TRADE); - AddDEF("screenActionButton11", InputAction::DIRECT_DOWN); + AddDEF("screenActionKeyboard", static_cast<int>( + InputAction::SHOW_KEYBOARD)); + AddDEF("screenActionButton0", static_cast<int>(InputAction::TALK)); + AddDEF("screenActionButton1", static_cast<int>( + InputAction::TARGET_ATTACK)); + AddDEF("screenActionButton2", static_cast<int>(InputAction::PICKUP)); + AddDEF("screenActionButton3", static_cast<int>(InputAction::STOP_SIT)); + AddDEF("screenActionButton4", static_cast<int>(InputAction::TARGET_NPC)); + AddDEF("screenActionButton5", static_cast<int>( + InputAction::WINDOW_STATUS)); + AddDEF("screenActionButton6", static_cast<int>( + InputAction::WINDOW_INVENTORY)); + AddDEF("screenActionButton7", static_cast<int>(InputAction::WINDOW_SKILL)); + AddDEF("screenActionButton8", static_cast<int>( + InputAction::WINDOW_SOCIAL)); + AddDEF("screenActionButton9", static_cast<int>(InputAction::WINDOW_DEBUG)); + AddDEF("screenActionButton10", static_cast<int>( + InputAction::CHANGE_TRADE)); + AddDEF("screenActionButton11", static_cast<int>(InputAction::DIRECT_DOWN)); AddDEF("screenButtonsFormat", 0); AddDEF("autoresizeminimaps", false); AddDEF("showGuildOnline", false); |