MCPcopy Create free account
hub / github.com/SFML/SFML / scancodeToKeyCode

Function scancodeToKeyCode

src/SFML/Window/Unix/KeyboardImpl.cpp:521–529  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

519
520////////////////////////////////////////////////////////////
521KeyCode scancodeToKeyCode(sf::Keyboard::Scancode code)
522{
523 ensureMapping();
524
525 if (code != sf::Keyboard::Scan::Unknown)
526 return scancodeToKeycode[code];
527
528 return nullKeyCode;
529}
530
531
532////////////////////////////////////////////////////////////

Callers 2

scancodeToKeySymFunction · 0.85
isKeyPressedMethod · 0.85

Calls 1

ensureMappingFunction · 0.85

Tested by

no test coverage detected