|
5 | 5 | namespace devilution { |
6 | 6 | namespace { |
7 | 7 | namespace controller_button_icon { |
8 | | -const std::string_view Playstation_Triangle = "\uE000"; |
9 | | -const std::string_view Playstation_Square = "\uE001"; |
10 | | -const std::string_view Playstation_X = "\uE002"; |
11 | | -const std::string_view Playstation_Circle = "\uE003"; |
12 | | -const std::string_view Playstation_Options = "\uE004"; |
13 | | -const std::string_view Playstation_Share = "\uE005"; |
14 | | -const std::string_view Playstation_L2 = "\uE006"; |
15 | | -const std::string_view Playstation_R2 = "\uE007"; |
16 | | -const std::string_view Playstation_L1 = "\uE008"; |
17 | | -const std::string_view Playstation_R1 = "\uE009"; |
18 | | -const std::string_view Playstation_DPad_Up = "\uE00A"; |
19 | | -const std::string_view Playstation_DPad_Right = "\uE00B"; |
20 | | -const std::string_view Playstation_DPad_Down = "\uE00C"; |
21 | | -const std::string_view Playstation_DPad_Left = "\uE00D"; |
22 | | -const std::string_view Playstation_LStick_NW = "\uE00E"; |
23 | | -const std::string_view Playstation_LStick_W = "\uE00F"; |
24 | | -const std::string_view Playstation_LStick_SW = "\uE010"; |
25 | | -const std::string_view Playstation_LStick_N = "\uE011"; |
26 | | -const std::string_view Playstation_LStick = "\uE012"; |
27 | | -const std::string_view Playstation_LStick_S = "\uE013"; |
28 | | -const std::string_view Playstation_LStick_NE = "\uE014"; |
29 | | -const std::string_view Playstation_LStick_E = "\uE015"; |
30 | | -const std::string_view Playstation_LStick_SE = "\uE016"; |
31 | | -const std::string_view Playstation_L3 = "\uE017"; |
32 | | -const std::string_view Playstation_RStick_NW = "\uE018"; |
33 | | -const std::string_view Playstation_RStick_W = "\uE019"; |
34 | | -const std::string_view Playstation_RStick_SW = "\uE01A"; |
35 | | -const std::string_view Playstation_RStick_N = "\uE01B"; |
36 | | -const std::string_view Playstation_RStick = "\uE01C"; |
37 | | -const std::string_view Playstation_RStick_S = "\uE01D"; |
38 | | -const std::string_view Playstation_RStick_NE = "\uE01E"; |
39 | | -const std::string_view Playstation_RStick_E = "\uE01F"; |
40 | | -const std::string_view Playstation_RStick_SE = "\uE020"; |
41 | | -const std::string_view Playstation_R3 = "\uE021"; |
42 | | -const std::string_view Playstation_Touchpad = "\uE022"; |
43 | | -const std::string_view Nintendo_X = "\uE023"; |
44 | | -const std::string_view Nintendo_Y = "\uE024"; |
45 | | -const std::string_view Nintendo_B = "\uE025"; |
46 | | -const std::string_view Nintendo_A = "\uE026"; |
47 | | -const std::string_view Nintendo_Plus = "\uE027"; |
48 | | -const std::string_view Nintendo_Minus = "\uE028"; |
49 | | -const std::string_view Nintendo_ZL = "\uE029"; |
50 | | -const std::string_view Nintendo_ZR = "\uE02A"; |
51 | | -const std::string_view Nintendo_L = "\uE02B"; |
52 | | -const std::string_view Nintendo_R = "\uE02C"; |
53 | | -const std::string_view Nintendo_DPad_Up = "\uE02D"; |
54 | | -const std::string_view Nintendo_DPad_Right = "\uE02E"; |
55 | | -const std::string_view Nintendo_DPad_Down = "\uE02F"; |
56 | | -const std::string_view Nintendo_DPad_Left = "\uE030"; |
57 | | -const std::string_view Nintendo_LStick_NW = "\uE031"; |
58 | | -const std::string_view Nintendo_LStick_W = "\uE032"; |
59 | | -const std::string_view Nintendo_LStick_SW = "\uE033"; |
60 | | -const std::string_view Nintendo_LStick_N = "\uE034"; |
61 | | -const std::string_view Nintendo_LStick = "\uE035"; |
62 | | -const std::string_view Nintendo_LStick_S = "\uE036"; |
63 | | -const std::string_view Nintendo_LStick_NE = "\uE037"; |
64 | | -const std::string_view Nintendo_LStick_E = "\uE038"; |
65 | | -const std::string_view Nintendo_LStick_SE = "\uE039"; |
66 | | -const std::string_view Nintendo_LStick_Click = "\uE03A"; |
67 | | -const std::string_view Nintendo_RStick_NW = "\uE03B"; |
68 | | -const std::string_view Nintendo_RStick_W = "\uE03C"; |
69 | | -const std::string_view Nintendo_RStick_SW = "\uE03D"; |
70 | | -const std::string_view Nintendo_RStick_N = "\uE03E"; |
71 | | -const std::string_view Nintendo_RStick = "\uE03F"; |
72 | | -const std::string_view Nintendo_RStick_S = "\uE040"; |
73 | | -const std::string_view Nintendo_RStick_NE = "\uE041"; |
74 | | -const std::string_view Nintendo_RStick_E = "\uE042"; |
75 | | -const std::string_view Nintendo_RStick_SE = "\uE043"; |
76 | | -const std::string_view Nintendo_RStick_Click = "\uE044"; |
77 | | -const std::string_view Nintendo_Home = "\uE045"; |
78 | | -const std::string_view Nintendo_Screenshot = "\uE046"; |
79 | | -const std::string_view Nintendo_SL = "\uE047"; |
80 | | -const std::string_view Nintendo_SR = "\uE048"; |
81 | | -const std::string_view Xbox_Y = "\uE049"; |
82 | | -const std::string_view Xbox_X = "\uE04A"; |
83 | | -const std::string_view Xbox_A = "\uE04B"; |
84 | | -const std::string_view Xbox_B = "\uE04C"; |
85 | | -const std::string_view Xbox_Menu = "\uE04D"; |
86 | | -const std::string_view Xbox_View = "\uE04E"; |
87 | | -const std::string_view Xbox_LT = "\uE04F"; |
88 | | -const std::string_view Xbox_RT = "\uE050"; |
89 | | -const std::string_view Xbox_LB = "\uE051"; |
90 | | -const std::string_view Xbox_RB = "\uE052"; |
91 | | -const std::string_view Xbox_DPad_Up = "\uE053"; |
92 | | -const std::string_view Xbox_DPad_Right = "\uE054"; |
93 | | -const std::string_view Xbox_DPad_Down = "\uE055"; |
94 | | -const std::string_view Xbox_DPad_Left = "\uE056"; |
95 | | -const std::string_view Xbox_LStick_NW = "\uE057"; |
96 | | -const std::string_view Xbox_LStick_W = "\uE058"; |
97 | | -const std::string_view Xbox_LStick_SW = "\uE059"; |
98 | | -const std::string_view Xbox_LStick_N = "\uE05A"; |
99 | | -const std::string_view Xbox_LStick = "\uE05B"; |
100 | | -const std::string_view Xbox_LStick_NE = "\uE05C"; |
101 | | -const std::string_view Xbox_LStick_E = "\uE05D"; |
102 | | -const std::string_view Xbox_LStick_SE = "\uE05E"; |
103 | | -const std::string_view Xbox_LStick_Click = "\uE05F"; |
104 | | -const std::string_view Xbox_RStick_NW = "\uE060"; |
105 | | -const std::string_view Xbox_RStick_W = "\uE061"; |
106 | | -const std::string_view Xbox_RStick_SW = "\uE062"; |
107 | | -const std::string_view Xbox_RStick_N = "\uE063"; |
108 | | -const std::string_view Xbox_RStick = "\uE064"; |
109 | | -const std::string_view Xbox_RStick_S = "\uE065"; |
110 | | -const std::string_view Xbox_RStick_NE = "\uE066"; |
111 | | -const std::string_view Xbox_RStick_E = "\uE067"; |
112 | | -const std::string_view Xbox_RStick_SE = "\uE068"; |
113 | | -const std::string_view Xbox_RStick_Click = "\uE069"; |
114 | | -const std::string_view Xbox_Xbox = "\uE06A"; |
| 8 | +[[maybe_unused]] const std::string_view Playstation_Triangle = "\uE000"; // NOLINT(readability-identifier-naming) |
| 9 | +[[maybe_unused]] const std::string_view Playstation_Square = "\uE001"; // NOLINT(readability-identifier-naming) |
| 10 | +[[maybe_unused]] const std::string_view Playstation_X = "\uE002"; // NOLINT(readability-identifier-naming) |
| 11 | +[[maybe_unused]] const std::string_view Playstation_Circle = "\uE003"; // NOLINT(readability-identifier-naming) |
| 12 | +[[maybe_unused]] const std::string_view Playstation_Options = "\uE004"; // NOLINT(readability-identifier-naming) |
| 13 | +[[maybe_unused]] const std::string_view Playstation_Share = "\uE005"; // NOLINT(readability-identifier-naming) |
| 14 | +[[maybe_unused]] const std::string_view Playstation_L2 = "\uE006"; // NOLINT(readability-identifier-naming) |
| 15 | +[[maybe_unused]] const std::string_view Playstation_R2 = "\uE007"; // NOLINT(readability-identifier-naming) |
| 16 | +[[maybe_unused]] const std::string_view Playstation_L1 = "\uE008"; // NOLINT(readability-identifier-naming) |
| 17 | +[[maybe_unused]] const std::string_view Playstation_R1 = "\uE009"; // NOLINT(readability-identifier-naming) |
| 18 | +[[maybe_unused]] const std::string_view Playstation_DPad_Up = "\uE00A"; // NOLINT(readability-identifier-naming) |
| 19 | +[[maybe_unused]] const std::string_view Playstation_DPad_Right = "\uE00B"; // NOLINT(readability-identifier-naming) |
| 20 | +[[maybe_unused]] const std::string_view Playstation_DPad_Down = "\uE00C"; // NOLINT(readability-identifier-naming) |
| 21 | +[[maybe_unused]] const std::string_view Playstation_DPad_Left = "\uE00D"; // NOLINT(readability-identifier-naming) |
| 22 | +[[maybe_unused]] const std::string_view Playstation_LStick_NW = "\uE00E"; // NOLINT(readability-identifier-naming) |
| 23 | +[[maybe_unused]] const std::string_view Playstation_LStick_W = "\uE00F"; // NOLINT(readability-identifier-naming) |
| 24 | +[[maybe_unused]] const std::string_view Playstation_LStick_SW = "\uE010"; // NOLINT(readability-identifier-naming) |
| 25 | +[[maybe_unused]] const std::string_view Playstation_LStick_N = "\uE011"; // NOLINT(readability-identifier-naming) |
| 26 | +[[maybe_unused]] const std::string_view Playstation_LStick = "\uE012"; // NOLINT(readability-identifier-naming) |
| 27 | +[[maybe_unused]] const std::string_view Playstation_LStick_S = "\uE013"; // NOLINT(readability-identifier-naming) |
| 28 | +[[maybe_unused]] const std::string_view Playstation_LStick_NE = "\uE014"; // NOLINT(readability-identifier-naming) |
| 29 | +[[maybe_unused]] const std::string_view Playstation_LStick_E = "\uE015"; // NOLINT(readability-identifier-naming) |
| 30 | +[[maybe_unused]] const std::string_view Playstation_LStick_SE = "\uE016"; // NOLINT(readability-identifier-naming) |
| 31 | +[[maybe_unused]] const std::string_view Playstation_L3 = "\uE017"; // NOLINT(readability-identifier-naming) |
| 32 | +[[maybe_unused]] const std::string_view Playstation_RStick_NW = "\uE018"; // NOLINT(readability-identifier-naming) |
| 33 | +[[maybe_unused]] const std::string_view Playstation_RStick_W = "\uE019"; // NOLINT(readability-identifier-naming) |
| 34 | +[[maybe_unused]] const std::string_view Playstation_RStick_SW = "\uE01A"; // NOLINT(readability-identifier-naming) |
| 35 | +[[maybe_unused]] const std::string_view Playstation_RStick_N = "\uE01B"; // NOLINT(readability-identifier-naming) |
| 36 | +[[maybe_unused]] const std::string_view Playstation_RStick = "\uE01C"; // NOLINT(readability-identifier-naming) |
| 37 | +[[maybe_unused]] const std::string_view Playstation_RStick_S = "\uE01D"; // NOLINT(readability-identifier-naming) |
| 38 | +[[maybe_unused]] const std::string_view Playstation_RStick_NE = "\uE01E"; // NOLINT(readability-identifier-naming) |
| 39 | +[[maybe_unused]] const std::string_view Playstation_RStick_E = "\uE01F"; // NOLINT(readability-identifier-naming) |
| 40 | +[[maybe_unused]] const std::string_view Playstation_RStick_SE = "\uE020"; // NOLINT(readability-identifier-naming) |
| 41 | +[[maybe_unused]] const std::string_view Playstation_R3 = "\uE021"; // NOLINT(readability-identifier-naming) |
| 42 | +[[maybe_unused]] const std::string_view Playstation_Touchpad = "\uE022"; // NOLINT(readability-identifier-naming) |
| 43 | +[[maybe_unused]] const std::string_view Nintendo_X = "\uE023"; // NOLINT(readability-identifier-naming) |
| 44 | +[[maybe_unused]] const std::string_view Nintendo_Y = "\uE024"; // NOLINT(readability-identifier-naming) |
| 45 | +[[maybe_unused]] const std::string_view Nintendo_B = "\uE025"; // NOLINT(readability-identifier-naming) |
| 46 | +[[maybe_unused]] const std::string_view Nintendo_A = "\uE026"; // NOLINT(readability-identifier-naming) |
| 47 | +[[maybe_unused]] const std::string_view Nintendo_Plus = "\uE027"; // NOLINT(readability-identifier-naming) |
| 48 | +[[maybe_unused]] const std::string_view Nintendo_Minus = "\uE028"; // NOLINT(readability-identifier-naming) |
| 49 | +[[maybe_unused]] const std::string_view Nintendo_ZL = "\uE029"; // NOLINT(readability-identifier-naming) |
| 50 | +[[maybe_unused]] const std::string_view Nintendo_ZR = "\uE02A"; // NOLINT(readability-identifier-naming) |
| 51 | +[[maybe_unused]] const std::string_view Nintendo_L = "\uE02B"; // NOLINT(readability-identifier-naming) |
| 52 | +[[maybe_unused]] const std::string_view Nintendo_R = "\uE02C"; // NOLINT(readability-identifier-naming) |
| 53 | +[[maybe_unused]] const std::string_view Nintendo_DPad_Up = "\uE02D"; // NOLINT(readability-identifier-naming) |
| 54 | +[[maybe_unused]] const std::string_view Nintendo_DPad_Right = "\uE02E"; // NOLINT(readability-identifier-naming) |
| 55 | +[[maybe_unused]] const std::string_view Nintendo_DPad_Down = "\uE02F"; // NOLINT(readability-identifier-naming) |
| 56 | +[[maybe_unused]] const std::string_view Nintendo_DPad_Left = "\uE030"; // NOLINT(readability-identifier-naming) |
| 57 | +[[maybe_unused]] const std::string_view Nintendo_LStick_NW = "\uE031"; // NOLINT(readability-identifier-naming) |
| 58 | +[[maybe_unused]] const std::string_view Nintendo_LStick_W = "\uE032"; // NOLINT(readability-identifier-naming) |
| 59 | +[[maybe_unused]] const std::string_view Nintendo_LStick_SW = "\uE033"; // NOLINT(readability-identifier-naming) |
| 60 | +[[maybe_unused]] const std::string_view Nintendo_LStick_N = "\uE034"; // NOLINT(readability-identifier-naming) |
| 61 | +[[maybe_unused]] const std::string_view Nintendo_LStick = "\uE035"; // NOLINT(readability-identifier-naming) |
| 62 | +[[maybe_unused]] const std::string_view Nintendo_LStick_S = "\uE036"; // NOLINT(readability-identifier-naming) |
| 63 | +[[maybe_unused]] const std::string_view Nintendo_LStick_NE = "\uE037"; // NOLINT(readability-identifier-naming) |
| 64 | +[[maybe_unused]] const std::string_view Nintendo_LStick_E = "\uE038"; // NOLINT(readability-identifier-naming) |
| 65 | +[[maybe_unused]] const std::string_view Nintendo_LStick_SE = "\uE039"; // NOLINT(readability-identifier-naming) |
| 66 | +[[maybe_unused]] const std::string_view Nintendo_LStick_Click = "\uE03A"; // NOLINT(readability-identifier-naming) |
| 67 | +[[maybe_unused]] const std::string_view Nintendo_RStick_NW = "\uE03B"; // NOLINT(readability-identifier-naming) |
| 68 | +[[maybe_unused]] const std::string_view Nintendo_RStick_W = "\uE03C"; // NOLINT(readability-identifier-naming) |
| 69 | +[[maybe_unused]] const std::string_view Nintendo_RStick_SW = "\uE03D"; // NOLINT(readability-identifier-naming) |
| 70 | +[[maybe_unused]] const std::string_view Nintendo_RStick_N = "\uE03E"; // NOLINT(readability-identifier-naming) |
| 71 | +[[maybe_unused]] const std::string_view Nintendo_RStick = "\uE03F"; // NOLINT(readability-identifier-naming) |
| 72 | +[[maybe_unused]] const std::string_view Nintendo_RStick_S = "\uE040"; // NOLINT(readability-identifier-naming) |
| 73 | +[[maybe_unused]] const std::string_view Nintendo_RStick_NE = "\uE041"; // NOLINT(readability-identifier-naming) |
| 74 | +[[maybe_unused]] const std::string_view Nintendo_RStick_E = "\uE042"; // NOLINT(readability-identifier-naming) |
| 75 | +[[maybe_unused]] const std::string_view Nintendo_RStick_SE = "\uE043"; // NOLINT(readability-identifier-naming) |
| 76 | +[[maybe_unused]] const std::string_view Nintendo_RStick_Click = "\uE044"; // NOLINT(readability-identifier-naming) |
| 77 | +[[maybe_unused]] const std::string_view Nintendo_Home = "\uE045"; // NOLINT(readability-identifier-naming) |
| 78 | +[[maybe_unused]] const std::string_view Nintendo_Screenshot = "\uE046"; // NOLINT(readability-identifier-naming) |
| 79 | +[[maybe_unused]] const std::string_view Nintendo_SL = "\uE047"; // NOLINT(readability-identifier-naming) |
| 80 | +[[maybe_unused]] const std::string_view Nintendo_SR = "\uE048"; // NOLINT(readability-identifier-naming) |
| 81 | +[[maybe_unused]] const std::string_view Xbox_Y = "\uE049"; // NOLINT(readability-identifier-naming) |
| 82 | +[[maybe_unused]] const std::string_view Xbox_X = "\uE04A"; // NOLINT(readability-identifier-naming) |
| 83 | +[[maybe_unused]] const std::string_view Xbox_A = "\uE04B"; // NOLINT(readability-identifier-naming) |
| 84 | +[[maybe_unused]] const std::string_view Xbox_B = "\uE04C"; // NOLINT(readability-identifier-naming) |
| 85 | +[[maybe_unused]] const std::string_view Xbox_Menu = "\uE04D"; // NOLINT(readability-identifier-naming) |
| 86 | +[[maybe_unused]] const std::string_view Xbox_View = "\uE04E"; // NOLINT(readability-identifier-naming) |
| 87 | +[[maybe_unused]] const std::string_view Xbox_LT = "\uE04F"; // NOLINT(readability-identifier-naming) |
| 88 | +[[maybe_unused]] const std::string_view Xbox_RT = "\uE050"; // NOLINT(readability-identifier-naming) |
| 89 | +[[maybe_unused]] const std::string_view Xbox_LB = "\uE051"; // NOLINT(readability-identifier-naming) |
| 90 | +[[maybe_unused]] const std::string_view Xbox_RB = "\uE052"; // NOLINT(readability-identifier-naming) |
| 91 | +[[maybe_unused]] const std::string_view Xbox_DPad_Up = "\uE053"; // NOLINT(readability-identifier-naming) |
| 92 | +[[maybe_unused]] const std::string_view Xbox_DPad_Right = "\uE054"; // NOLINT(readability-identifier-naming) |
| 93 | +[[maybe_unused]] const std::string_view Xbox_DPad_Down = "\uE055"; // NOLINT(readability-identifier-naming) |
| 94 | +[[maybe_unused]] const std::string_view Xbox_DPad_Left = "\uE056"; // NOLINT(readability-identifier-naming) |
| 95 | +[[maybe_unused]] const std::string_view Xbox_LStick_NW = "\uE057"; // NOLINT(readability-identifier-naming) |
| 96 | +[[maybe_unused]] const std::string_view Xbox_LStick_W = "\uE058"; // NOLINT(readability-identifier-naming) |
| 97 | +[[maybe_unused]] const std::string_view Xbox_LStick_SW = "\uE059"; // NOLINT(readability-identifier-naming) |
| 98 | +[[maybe_unused]] const std::string_view Xbox_LStick_N = "\uE05A"; // NOLINT(readability-identifier-naming) |
| 99 | +[[maybe_unused]] const std::string_view Xbox_LStick = "\uE05B"; // NOLINT(readability-identifier-naming) |
| 100 | +[[maybe_unused]] const std::string_view Xbox_LStick_NE = "\uE05C"; // NOLINT(readability-identifier-naming) |
| 101 | +[[maybe_unused]] const std::string_view Xbox_LStick_E = "\uE05D"; // NOLINT(readability-identifier-naming) |
| 102 | +[[maybe_unused]] const std::string_view Xbox_LStick_SE = "\uE05E"; // NOLINT(readability-identifier-naming) |
| 103 | +[[maybe_unused]] const std::string_view Xbox_LStick_Click = "\uE05F"; // NOLINT(readability-identifier-naming) |
| 104 | +[[maybe_unused]] const std::string_view Xbox_RStick_NW = "\uE060"; // NOLINT(readability-identifier-naming) |
| 105 | +[[maybe_unused]] const std::string_view Xbox_RStick_W = "\uE061"; // NOLINT(readability-identifier-naming) |
| 106 | +[[maybe_unused]] const std::string_view Xbox_RStick_SW = "\uE062"; // NOLINT(readability-identifier-naming) |
| 107 | +[[maybe_unused]] const std::string_view Xbox_RStick_N = "\uE063"; // NOLINT(readability-identifier-naming) |
| 108 | +[[maybe_unused]] const std::string_view Xbox_RStick = "\uE064"; // NOLINT(readability-identifier-naming) |
| 109 | +[[maybe_unused]] const std::string_view Xbox_RStick_S = "\uE065"; // NOLINT(readability-identifier-naming) |
| 110 | +[[maybe_unused]] const std::string_view Xbox_RStick_NE = "\uE066"; // NOLINT(readability-identifier-naming) |
| 111 | +[[maybe_unused]] const std::string_view Xbox_RStick_E = "\uE067"; // NOLINT(readability-identifier-naming) |
| 112 | +[[maybe_unused]] const std::string_view Xbox_RStick_SE = "\uE068"; // NOLINT(readability-identifier-naming) |
| 113 | +[[maybe_unused]] const std::string_view Xbox_RStick_Click = "\uE069"; // NOLINT(readability-identifier-naming) |
| 114 | +[[maybe_unused]] const std::string_view Xbox_Xbox = "\uE06A"; // NOLINT(readability-identifier-naming) |
115 | 115 | } // namespace controller_button_icon |
116 | 116 |
|
117 | 117 | std::string_view ToGenericButtonText(ControllerButton button) |
|
0 commit comments