From 36e0abfc35d12ee57354a6ebca434ec78e3e7e90 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 24 Nov 2024 16:23:05 +0000 Subject: [PATCH] Fix -Wunused-const-variable in controller_buttons --- Source/controls/controller_buttons.cpp | 214 ++++++++++++------------- 1 file changed, 107 insertions(+), 107 deletions(-) diff --git a/Source/controls/controller_buttons.cpp b/Source/controls/controller_buttons.cpp index 8b6379c9c20..50949436d47 100644 --- a/Source/controls/controller_buttons.cpp +++ b/Source/controls/controller_buttons.cpp @@ -5,113 +5,113 @@ namespace devilution { namespace { namespace controller_button_icon { -const std::string_view Playstation_Triangle = "\uE000"; -const std::string_view Playstation_Square = "\uE001"; -const std::string_view Playstation_X = "\uE002"; -const std::string_view Playstation_Circle = "\uE003"; -const std::string_view Playstation_Options = "\uE004"; -const std::string_view Playstation_Share = "\uE005"; -const std::string_view Playstation_L2 = "\uE006"; -const std::string_view Playstation_R2 = "\uE007"; -const std::string_view Playstation_L1 = "\uE008"; -const std::string_view Playstation_R1 = "\uE009"; -const std::string_view Playstation_DPad_Up = "\uE00A"; -const std::string_view Playstation_DPad_Right = "\uE00B"; -const std::string_view Playstation_DPad_Down = "\uE00C"; -const std::string_view Playstation_DPad_Left = "\uE00D"; -const std::string_view Playstation_LStick_NW = "\uE00E"; -const std::string_view Playstation_LStick_W = "\uE00F"; -const std::string_view Playstation_LStick_SW = "\uE010"; -const std::string_view Playstation_LStick_N = "\uE011"; -const std::string_view Playstation_LStick = "\uE012"; -const std::string_view Playstation_LStick_S = "\uE013"; -const std::string_view Playstation_LStick_NE = "\uE014"; -const std::string_view Playstation_LStick_E = "\uE015"; -const std::string_view Playstation_LStick_SE = "\uE016"; -const std::string_view Playstation_L3 = "\uE017"; -const std::string_view Playstation_RStick_NW = "\uE018"; -const std::string_view Playstation_RStick_W = "\uE019"; -const std::string_view Playstation_RStick_SW = "\uE01A"; -const std::string_view Playstation_RStick_N = "\uE01B"; -const std::string_view Playstation_RStick = "\uE01C"; -const std::string_view Playstation_RStick_S = "\uE01D"; -const std::string_view Playstation_RStick_NE = "\uE01E"; -const std::string_view Playstation_RStick_E = "\uE01F"; -const std::string_view Playstation_RStick_SE = "\uE020"; -const std::string_view Playstation_R3 = "\uE021"; -const std::string_view Playstation_Touchpad = "\uE022"; -const std::string_view Nintendo_X = "\uE023"; -const std::string_view Nintendo_Y = "\uE024"; -const std::string_view Nintendo_B = "\uE025"; -const std::string_view Nintendo_A = "\uE026"; -const std::string_view Nintendo_Plus = "\uE027"; -const std::string_view Nintendo_Minus = "\uE028"; -const std::string_view Nintendo_ZL = "\uE029"; -const std::string_view Nintendo_ZR = "\uE02A"; -const std::string_view Nintendo_L = "\uE02B"; -const std::string_view Nintendo_R = "\uE02C"; -const std::string_view Nintendo_DPad_Up = "\uE02D"; -const std::string_view Nintendo_DPad_Right = "\uE02E"; -const std::string_view Nintendo_DPad_Down = "\uE02F"; -const std::string_view Nintendo_DPad_Left = "\uE030"; -const std::string_view Nintendo_LStick_NW = "\uE031"; -const std::string_view Nintendo_LStick_W = "\uE032"; -const std::string_view Nintendo_LStick_SW = "\uE033"; -const std::string_view Nintendo_LStick_N = "\uE034"; -const std::string_view Nintendo_LStick = "\uE035"; -const std::string_view Nintendo_LStick_S = "\uE036"; -const std::string_view Nintendo_LStick_NE = "\uE037"; -const std::string_view Nintendo_LStick_E = "\uE038"; -const std::string_view Nintendo_LStick_SE = "\uE039"; -const std::string_view Nintendo_LStick_Click = "\uE03A"; -const std::string_view Nintendo_RStick_NW = "\uE03B"; -const std::string_view Nintendo_RStick_W = "\uE03C"; -const std::string_view Nintendo_RStick_SW = "\uE03D"; -const std::string_view Nintendo_RStick_N = "\uE03E"; -const std::string_view Nintendo_RStick = "\uE03F"; -const std::string_view Nintendo_RStick_S = "\uE040"; -const std::string_view Nintendo_RStick_NE = "\uE041"; -const std::string_view Nintendo_RStick_E = "\uE042"; -const std::string_view Nintendo_RStick_SE = "\uE043"; -const std::string_view Nintendo_RStick_Click = "\uE044"; -const std::string_view Nintendo_Home = "\uE045"; -const std::string_view Nintendo_Screenshot = "\uE046"; -const std::string_view Nintendo_SL = "\uE047"; -const std::string_view Nintendo_SR = "\uE048"; -const std::string_view Xbox_Y = "\uE049"; -const std::string_view Xbox_X = "\uE04A"; -const std::string_view Xbox_A = "\uE04B"; -const std::string_view Xbox_B = "\uE04C"; -const std::string_view Xbox_Menu = "\uE04D"; -const std::string_view Xbox_View = "\uE04E"; -const std::string_view Xbox_LT = "\uE04F"; -const std::string_view Xbox_RT = "\uE050"; -const std::string_view Xbox_LB = "\uE051"; -const std::string_view Xbox_RB = "\uE052"; -const std::string_view Xbox_DPad_Up = "\uE053"; -const std::string_view Xbox_DPad_Right = "\uE054"; -const std::string_view Xbox_DPad_Down = "\uE055"; -const std::string_view Xbox_DPad_Left = "\uE056"; -const std::string_view Xbox_LStick_NW = "\uE057"; -const std::string_view Xbox_LStick_W = "\uE058"; -const std::string_view Xbox_LStick_SW = "\uE059"; -const std::string_view Xbox_LStick_N = "\uE05A"; -const std::string_view Xbox_LStick = "\uE05B"; -const std::string_view Xbox_LStick_NE = "\uE05C"; -const std::string_view Xbox_LStick_E = "\uE05D"; -const std::string_view Xbox_LStick_SE = "\uE05E"; -const std::string_view Xbox_LStick_Click = "\uE05F"; -const std::string_view Xbox_RStick_NW = "\uE060"; -const std::string_view Xbox_RStick_W = "\uE061"; -const std::string_view Xbox_RStick_SW = "\uE062"; -const std::string_view Xbox_RStick_N = "\uE063"; -const std::string_view Xbox_RStick = "\uE064"; -const std::string_view Xbox_RStick_S = "\uE065"; -const std::string_view Xbox_RStick_NE = "\uE066"; -const std::string_view Xbox_RStick_E = "\uE067"; -const std::string_view Xbox_RStick_SE = "\uE068"; -const std::string_view Xbox_RStick_Click = "\uE069"; -const std::string_view Xbox_Xbox = "\uE06A"; +[[maybe_unused]] const std::string_view Playstation_Triangle = "\uE000"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_Square = "\uE001"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_X = "\uE002"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_Circle = "\uE003"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_Options = "\uE004"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_Share = "\uE005"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_L2 = "\uE006"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_R2 = "\uE007"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_L1 = "\uE008"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_R1 = "\uE009"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_DPad_Up = "\uE00A"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_DPad_Right = "\uE00B"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_DPad_Down = "\uE00C"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_DPad_Left = "\uE00D"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_LStick_NW = "\uE00E"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_LStick_W = "\uE00F"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_LStick_SW = "\uE010"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_LStick_N = "\uE011"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_LStick = "\uE012"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_LStick_S = "\uE013"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_LStick_NE = "\uE014"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_LStick_E = "\uE015"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_LStick_SE = "\uE016"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_L3 = "\uE017"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_RStick_NW = "\uE018"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_RStick_W = "\uE019"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_RStick_SW = "\uE01A"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_RStick_N = "\uE01B"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_RStick = "\uE01C"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_RStick_S = "\uE01D"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_RStick_NE = "\uE01E"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_RStick_E = "\uE01F"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_RStick_SE = "\uE020"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_R3 = "\uE021"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Playstation_Touchpad = "\uE022"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_X = "\uE023"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_Y = "\uE024"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_B = "\uE025"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_A = "\uE026"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_Plus = "\uE027"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_Minus = "\uE028"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_ZL = "\uE029"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_ZR = "\uE02A"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_L = "\uE02B"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_R = "\uE02C"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_DPad_Up = "\uE02D"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_DPad_Right = "\uE02E"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_DPad_Down = "\uE02F"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_DPad_Left = "\uE030"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick_NW = "\uE031"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick_W = "\uE032"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick_SW = "\uE033"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick_N = "\uE034"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick = "\uE035"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick_S = "\uE036"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick_NE = "\uE037"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick_E = "\uE038"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick_SE = "\uE039"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_LStick_Click = "\uE03A"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick_NW = "\uE03B"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick_W = "\uE03C"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick_SW = "\uE03D"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick_N = "\uE03E"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick = "\uE03F"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick_S = "\uE040"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick_NE = "\uE041"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick_E = "\uE042"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick_SE = "\uE043"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_RStick_Click = "\uE044"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_Home = "\uE045"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_Screenshot = "\uE046"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_SL = "\uE047"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Nintendo_SR = "\uE048"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_Y = "\uE049"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_X = "\uE04A"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_A = "\uE04B"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_B = "\uE04C"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_Menu = "\uE04D"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_View = "\uE04E"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LT = "\uE04F"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RT = "\uE050"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LB = "\uE051"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RB = "\uE052"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_DPad_Up = "\uE053"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_DPad_Right = "\uE054"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_DPad_Down = "\uE055"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_DPad_Left = "\uE056"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LStick_NW = "\uE057"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LStick_W = "\uE058"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LStick_SW = "\uE059"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LStick_N = "\uE05A"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LStick = "\uE05B"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LStick_NE = "\uE05C"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LStick_E = "\uE05D"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LStick_SE = "\uE05E"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_LStick_Click = "\uE05F"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick_NW = "\uE060"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick_W = "\uE061"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick_SW = "\uE062"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick_N = "\uE063"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick = "\uE064"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick_S = "\uE065"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick_NE = "\uE066"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick_E = "\uE067"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick_SE = "\uE068"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_RStick_Click = "\uE069"; // NOLINT(readability-identifier-naming) +[[maybe_unused]] const std::string_view Xbox_Xbox = "\uE06A"; // NOLINT(readability-identifier-naming) } // namespace controller_button_icon std::string_view ToGenericButtonText(ControllerButton button)