53 return (
static_cast<u16>(
lhs) &
static_cast<u16>(
rhs)) != 0;
74#define EVENT_CLASS_TYPE(type) \
75 static EventType get_static_type() { \
76 return EventType::type; \
78 virtual EventType get_event_type() const override { \
79 return get_static_type(); \
81 virtual const char* get_name() const override { \
84#define EVENT_CLASS_CATEGORY(category) \
85 virtual int get_category_flags() const override { \
86 return static_cast<int>(category); \
Definition EventManager.hpp:72
bool m_handled
Definition Event.hpp:68
virtual EventType get_event_type() const =0
virtual const char * get_name() const =0
bool is_in_category(EventCategory category) const
Definition Event.hpp:63
virtual int get_category_flags() const =0
Definition LayerList.hpp:21
Definition Application.hpp:28
EventCategory operator|(const EventCategory a, const EventCategory b)
Definition Event.hpp:48
EventType
Definition Event.hpp:24
EventCategory
Definition Event.hpp:37
@ EVENT_CATEGORY_MOUSE_BUTTON
@ EVENT_CATEGORY_CONTROLLER
@ EVENT_CATEGORY_KEYBOARD
@ EVENT_CATEGORY_APPLICATION
bool operator&(int lhs, EventCategory rhs)
Definition Event.hpp:52
static consteval usize bit(usize idx)
Definition Event.hpp:16
constexpr T g_type_max
Definition types.hpp:21
std::uint16_t u16
Definition types.hpp:14
std::size_t usize
Definition types.hpp:18