MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getKey

Method getKey

src/Core/Input/InputButton.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 sf::Keyboard::Key InputButton::getKey() const
54 {
55 if (std::holds_alternative<sf::Keyboard::Key>(m_button))
56 return std::get<sf::Keyboard::Key>(m_button);
57 throw Exceptions::InputButtonInvalidOperation(
58 inputTypeToString(m_type), "GetKey", EXC_INFO);
59 }
60
61 std::string InputButton::getName() const
62 {

Callers 1

updateMethod · 0.45

Calls 2

inputTypeToStringFunction · 0.85

Tested by

no test coverage detected