15 inline float GetX()
const {
return m_MouseX; }
16 inline float GetY()
const {
return m_MouseY; }
17 std::string ToString()
const override
20 ss <<
"MouseMovedEvent: " << m_MouseX <<
", " << m_MouseY;
24 EVENT_CLASS_TYPE(MouseMoved)
25 EVENT_CLASS_CATEGORY(EventCategoryMouse | EventCategoryInput)
28 float m_MouseX, m_MouseY;
38 inline float GetXOffset()
const {
return m_XOffset; }
39 inline float GetYOffset()
const {
return m_YOffset; }
40 std::string ToString()
const override
43 ss <<
"MouseScrolledEvent: " << m_XOffset <<
", " << m_YOffset;
47 EVENT_CLASS_TYPE(MouseScrolled)
48 EVENT_CLASS_CATEGORY(EventCategoryMouse | EventCategoryInput)
50 float m_XOffset, m_YOffset;
56 inline int GetMouseButton()
const {
return m_Button; }
58 EVENT_CLASS_CATEGORY(EventCategoryMouse | EventCategoryInput)
72 std::string ToString()
const override
75 ss <<
"MouseButtonPressedEvent: " << m_Button;
79 EVENT_CLASS_TYPE(MouseButtonPressed)
88 std::string ToString()
const override
91 ss <<
"MouseButtonReleasedEvent: " << m_Button;
95 EVENT_CLASS_TYPE(MouseButtonReleased)
Definition MouseEvent.h:10