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

Function localize

src/SFML/Window/Win32/InputImpl.cpp:607–615  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

605
606////////////////////////////////////////////////////////////
607Keyboard::Key localize(Keyboard::Scancode code)
608{
609 if (!isValidScancode(code))
610 return Keyboard::Key::Unknown;
611
612 ensureMappings();
613
614 return scancodeToKeyMapping[code];
615}
616
617
618////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

isValidScancodeFunction · 0.85
ensureMappingsFunction · 0.85

Tested by

no test coverage detected