Go to the source code of this file.
|
enum class | EventType : std::uint32_t {
NONE = 0
, WINDOW_CLOSE
, WINDOW_RESIZE
, WINDOW_FOCUS
,
WINDOW_LOST_FOCUS
, WINDOW_MOVED
, WINDOW_MAXIMIZED
, WINDOW_FILE_DROP
,
FRAME_BUFFER_RESIZE
, APP_TICK
, APP_UPDATE
, APP_RENDER
,
KEY_PRESSED
, KEY_RELEASED
, KEY_TYPED
, MOUSE_BUTTON_PRESSED
,
MOUSE_BUTTON_RELEASED
, MOUSE_MOTION
, MOUSE_WHEEL
, JOYSTICK_CONNECTED
,
JOYSTICK_DISCONNECTED
} |
|
enum class | EventCategory : std::uint32_t {
NONE = 0
, APPLICATION = BIT(0)
, INPUT = BIT(1)
, KEYBOARD = BIT(2)
,
MOUSE = BIT(3)
, MOUSE_BUTTON = BIT(4)
, JOYSTICK = BIT(5)
} |
|
◆ ENIGMA_EVENT_H
◆ EVENT_CLASS_CATEGORY
#define EVENT_CLASS_CATEGORY |
( |
|
category | ) |
virtual std::uint32_t GetCategoryFlags() const override { return static_cast<std::uint32_t>(category); } |
◆ EVENT_CLASS_TYPE
#define EVENT_CLASS_TYPE |
( |
|
type | ) |
|
Value: static EventType GetStaticType() {
return type; } \
virtual
EventType GetEventType()
const override {
return GetStaticType(); } \
virtual const char *GetName() const override { return #type; }
Definition at line 59 of file Event.hpp.
◆ EventCategory
Enumerator |
---|
NONE | |
APPLICATION | |
INPUT | |
KEYBOARD | |
MOUSE | |
MOUSE_BUTTON | |
JOYSTICK | |
Definition at line 47 of file Event.hpp.
◆ EventType
Enumerator |
---|
NONE | |
WINDOW_CLOSE | |
WINDOW_RESIZE | |
WINDOW_FOCUS | |
WINDOW_LOST_FOCUS | |
WINDOW_MOVED | |
WINDOW_MAXIMIZED | |
WINDOW_FILE_DROP | |
FRAME_BUFFER_RESIZE | |
APP_TICK | |
APP_UPDATE | |
APP_RENDER | |
KEY_PRESSED | |
KEY_RELEASED | |
KEY_TYPED | |
MOUSE_BUTTON_PRESSED | |
MOUSE_BUTTON_RELEASED | |
MOUSE_MOTION | |
MOUSE_WHEEL | |
JOYSTICK_CONNECTED | |
JOYSTICK_DISCONNECTED | |
Definition at line 9 of file Event.hpp.
◆ operator&() [1/2]
◆ operator&() [2/2]
◆ operator<<()
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Event & |
e |
|
) |
| |
|
inline |
◆ operator|() [1/2]
◆ operator|() [2/2]