| 2334 | } |
| 2335 | |
| 2336 | string command_to_string(command_type cmd, bool tutorial) |
| 2337 | { |
| 2338 | const int key = command_to_key(cmd); |
| 2339 | |
| 2340 | string result; |
| 2341 | if (key >= 32 && key < 256) |
| 2342 | { |
| 2343 | if (tutorial && key >= 'A' && key <= 'Z') |
| 2344 | result = make_stringf("uppercase %c", (char) key); |
| 2345 | else |
| 2346 | result = string(1, (char) key); |
| 2347 | } |
| 2348 | else |
| 2349 | result = keycode_to_name(key, false); |
| 2350 | |
| 2351 | return result; |
| 2352 | } |
| 2353 | |
| 2354 | void insert_commands(string &desc, const vector<command_type> &cmds, bool formatted) |
| 2355 | { |
no test coverage detected