10 : m_MouseX(x), m_MouseY(y) {
13 [[nodiscard]] int32_t
GetX()
const {
return m_MouseX; }
14 [[nodiscard]] int32_t
GetY()
const {
return m_MouseY; }
16 [[nodiscard]] std::string
ToString()
const override {
17 return std::string(
"MouseMovedEvent: (") + std::to_string(m_MouseX) + std::string(
", ") + std::to_string(m_MouseY) + std::string(
")");
23 int32_t m_MouseX{ 0 };
24 int32_t m_MouseY{ 0 };
30 : m_xDirection(xDirection), m_yDirection(yDirection) {}
36 return std::string(
"MouseScrolledEvent: (") + std::to_string(m_xDirection) + std::string(
", ") + std::to_string(m_yDirection) + std::string(
")");
41 int16_t m_xDirection{ 0 };
42 int16_t m_yDirection{ 0 };
#define EVENT_CLASS_TYPE(type)
Assigns an EventType to the custom event type derived from the Event class. Use it in the public fiel...
#define EVENT_CLASS_CATEGORY(category)
Assigns an EventCategory to the custom event type derived from the Event class. Use it in the public ...
An abstract class that is ment to be used as a template for defining events.
std::string ToString() const override
Returns the name of the Event.
MouseMovedEvent(const int32_t x, const int32_t y)
Core systems of the engine are here.
static std::string CoriGetKeyName(const CoriKeycode code)
@ EventCategoryMouseButton
@ CORI_MOUSEBUTTON_UNKNOWN
enum Cori::Core::CoriMouseCode CoriMouseKeycode
An enum of all available mouse buttons.