MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / getModifierString

Function getModifierString

src/visualizer/input/input_bindings.cpp:1421–1442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1419 }
1420
1421 std::string getModifierString(const int modifiers) {
1422 std::string result;
1423 if (modifiers & MODIFIER_CTRL) {
1424 result += "Ctrl";
1425 }
1426 if (modifiers & MODIFIER_ALT) {
1427 if (!result.empty())
1428 result += "+";
1429 result += "Alt";
1430 }
1431 if (modifiers & MODIFIER_SHIFT) {
1432 if (!result.empty())
1433 result += "+";
1434 result += "Shift";
1435 }
1436 if (modifiers & MODIFIER_SUPER) {
1437 if (!result.empty())
1438 result += "+";
1439 result += "Super";
1440 }
1441 return result;
1442 }
1443
1444 void InputBindings::startCapture(ToolMode mode, Action action) {
1445 capture_state_ = CaptureState{};

Callers 2

register_keymapFunction · 0.85
getTriggerDescriptionMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected