#include #include #include namespace sp { InputEvent::InputEvent(Type type) : type (type) { } std::string InputEvent::KeyEvent::getKeyName() const { return Keyboard::getKeyName(code); } std::string InputEvent::MouseButtonEvent::getName() const { return Mouse::getButtonName(button); } } // namespace sp