MCPcopy Create free account
hub / github.com/bluescan/tacentview / GetModifiersText

Method GetModifiersText

Src/InputBindings.cpp:247–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246
247const 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
269tString Bindings::GetModKeyText(int key, uint32 modifiers)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected