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

Function somethingIsOdd

examples/keyboard/Keyboard.cpp:702–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700
701template <typename KeyEventType>
702bool somethingIsOdd(const KeyEventType& keyEvent)
703{
704 return keyEvent.code == sf::Keyboard::Key::Unknown || keyEvent.scancode == sf::Keyboard::Scan::Unknown ||
705 sf::Keyboard::getDescription(keyEvent.scancode) == "" ||
706 sf::Keyboard::localize(keyEvent.scancode) != keyEvent.code ||
707 sf::Keyboard::delocalize(keyEvent.code) != keyEvent.scancode;
708}
709
710// Append information to string about a keyboard event
711template <typename KeyEventType>

Callers 2

keyEventDescriptionFunction · 0.85
mainFunction · 0.85

Calls 3

getDescriptionFunction · 0.50
localizeFunction · 0.50
delocalizeFunction · 0.50

Tested by

no test coverage detected