1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Create UI event handling infrastructure

This commit is contained in:
v-rob 2024-08-31 15:44:01 -07:00
parent 9cc73f16f0
commit bb2f857b04
27 changed files with 1060 additions and 49 deletions

View file

@ -8,6 +8,8 @@
#include "Keycodes.h"
#include "irrString.h"
union SDL_Event;
namespace irr
{
//! Enumeration for all event types there are.
@ -82,6 +84,11 @@ enum EEVENT_TYPE
//! Application state events like a resume, pause etc.
EET_APPLICATION_EVENT,
//! Any other raw SDL event that doesn't fall into the above categories. In
// this case, only SEvent::SdlEvent contains valid information. Note that
// SEvent::SdlEvent is non-nullptr for most other event types as well.
EET_OTHER_SDL_EVENT,
//! This enum is never used, it only forces the compiler to
//! compile these enumeration values to 32 bit.
EGUIET_FORCE_32_BIT = 0x7fffffff
@ -526,6 +533,7 @@ struct SEvent
};
EEVENT_TYPE EventType;
union SDL_Event *SdlEvent = nullptr;
union
{
struct SGUIEvent GUIEvent;