///////////////////////////////////////////////////////
| 565 | |
| 566 | //////////////////////////////////////////////////////////// |
| 567 | KeySym 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 | //////////////////////////////////////////////////////////// |
no test coverage detected