| 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 | { |
no test coverage detected