| 245 | |
| 246 | |
| 247 | const char* Bindings::GetModifiersText(uint32 modifiers) |
| 248 | { |
| 249 | if (!modifiers) |
| 250 | return nullptr; |
| 251 | |
| 252 | // Order is ctrl-alt-shift. |
| 253 | const char* dispstr[] = |
| 254 | { |
| 255 | "", |
| 256 | "Ctrl", |
| 257 | "Alt", |
| 258 | "Ctrl-Alt", |
| 259 | "Shift", |
| 260 | "Ctrl-Shift", |
| 261 | "Alt-Shift", |
| 262 | "Ctrl-Alt-Shift" |
| 263 | }; |
| 264 | tStaticAssert(tNumElements(dispstr) == Modifier_NumCombinations); |
| 265 | return dispstr[modifiers]; |
| 266 | } |
| 267 | |
| 268 | |
| 269 | tString Bindings::GetModKeyText(int key, uint32 modifiers) |
nothing calls this directly
no outgoing calls
no test coverage detected