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

Function scancodeToKeySym

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

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

Source from the content-addressed store, hash-verified

565
566////////////////////////////////////////////////////////////
567KeySym scancodeToKeySym(sf::Keyboard::Scancode code)
568{
569 const auto display = sf::priv::openDisplay();
570
571 KeySym keysym = NoSymbol;
572 const KeyCode keycode = scancodeToKeyCode(code);
573
574 if (keycode != nullKeyCode) // ensure that this Scancode is mapped to keycode
575 keysym = XkbKeycodeToKeysym(display.get(), keycode, 0, 0);
576
577 return keysym;
578}
579
580
581////////////////////////////////////////////////////////////

Callers 2

localizeMethod · 0.85
getDescriptionMethod · 0.85

Calls 3

openDisplayFunction · 0.85
scancodeToKeyCodeFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected