Get the C++ enumerator name of the given `sf::Keyboard::Scancode` value including `Scan::` prefix
| 144 | |
| 145 | // Get the C++ enumerator name of the given `sf::Keyboard::Scancode` value including `Scan::` prefix |
| 146 | std::string scancodeIdentifier(sf::Keyboard::Scancode scancode) |
| 147 | { |
| 148 | switch (scancode) |
| 149 | { |
| 150 | #define CASE(scancode) \ |
| 151 | case sf::Keyboard::Scan::scancode: \ |
| 152 | return "Scan::" #scancode |
| 153 | CASE(Unknown); |
| 154 | CASE(A); |
| 155 | CASE(B); |
| 156 | CASE(C); |
| 157 | CASE(D); |
| 158 | CASE(E); |
| 159 | CASE(F); |
| 160 | CASE(G); |
| 161 | CASE(H); |
| 162 | CASE(I); |
| 163 | CASE(J); |
| 164 | CASE(K); |
| 165 | CASE(L); |
| 166 | CASE(M); |
| 167 | CASE(N); |
| 168 | CASE(O); |
| 169 | CASE(P); |
| 170 | CASE(Q); |
| 171 | CASE(R); |
| 172 | CASE(S); |
| 173 | CASE(T); |
| 174 | CASE(U); |
| 175 | CASE(V); |
| 176 | CASE(W); |
| 177 | CASE(X); |
| 178 | CASE(Y); |
| 179 | CASE(Z); |
| 180 | CASE(Num1); |
| 181 | CASE(Num2); |
| 182 | CASE(Num3); |
| 183 | CASE(Num4); |
| 184 | CASE(Num5); |
| 185 | CASE(Num6); |
| 186 | CASE(Num7); |
| 187 | CASE(Num8); |
| 188 | CASE(Num9); |
| 189 | CASE(Num0); |
| 190 | CASE(Enter); |
| 191 | CASE(Escape); |
| 192 | CASE(Backspace); |
| 193 | CASE(Tab); |
| 194 | CASE(Space); |
| 195 | CASE(Hyphen); |
| 196 | CASE(Equal); |
| 197 | CASE(LBracket); |
| 198 | CASE(RBracket); |
| 199 | CASE(Backslash); |
| 200 | CASE(Semicolon); |
| 201 | CASE(Apostrophe); |
| 202 | CASE(Grave); |
| 203 | CASE(Comma); |
no outgoing calls
no test coverage detected