MCPcopy Create free account
hub / github.com/SFML/imgui-sfml / keycodeToImGuiMod

Function keycodeToImGuiMod

imgui-SFML.cpp:1446–1466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1444}
1445
1446ImGuiKey keycodeToImGuiMod(sf::Keyboard::Key code)
1447{
1448 switch (code)
1449 {
1450 case sf::Keyboard::Key::LControl:
1451 case sf::Keyboard::Key::RControl:
1452 return ImGuiMod_Ctrl;
1453 case sf::Keyboard::Key::LShift:
1454 case sf::Keyboard::Key::RShift:
1455 return ImGuiMod_Shift;
1456 case sf::Keyboard::Key::LAlt:
1457 case sf::Keyboard::Key::RAlt:
1458 return ImGuiMod_Alt;
1459 case sf::Keyboard::Key::LSystem:
1460 case sf::Keyboard::Key::RSystem:
1461 return ImGuiMod_Super;
1462 default:
1463 break;
1464 }
1465 return ImGuiKey_None;
1466}
1467
1468} // end of anonymous namespace

Callers 1

ProcessEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected