2 #ifndef ENIGMA_MOUSE_EVENT_H
3 #define ENIGMA_MOUSE_EVENT_H
21 float GetX() const noexcept {
return m_mouseX; }
22 float GetY() const noexcept {
return m_mouseY; }
25 std::ostringstream ss;
26 ss <<
"MouseMotionEvent: " << m_mouseX <<
", " << m_mouseY;
34 float m_mouseX, m_mouseY;
48 std::ostringstream ss;
49 ss <<
"MouseWheelEvent: " << m_XOffset <<
", " << m_YOffset;
57 float m_XOffset, m_YOffset;
65 virtual std::string
ToString()
const override = 0;
82 std::ostringstream ss;
83 ss <<
"MouseButtonPressedEvent: " <<
m_button;
97 std::ostringstream ss;
98 ss <<
"MouseButtonReleasedEvent: " <<
m_button;
#define EVENT_CLASS_TYPE(type)
#define EVENT_CLASS_CATEGORY(category)
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
float GetY() const noexcept
MouseMotionEvent(const float x, const float y)
std::string ToString() const override
float GetX() const noexcept
float GetYOffset() const noexcept
float GetXOffset() const noexcept
std::string ToString() const override
MouseWheelEvent(const float xOffset, const float yOffset)