Elevate Engine 1
Loading...
Searching...
No Matches
Event.h File Reference
#include "ElevateEngine/Core/Core.h"
#include <string>
#include <cstdint>
#include <ostream>
#include <functional>

Go to the source code of this file.

Classes

class  Elevate::Event
 
class  Elevate::EventDispatcher
 

Namespaces

namespace  Elevate
 

Macros

#define EVENT_CLASS_TYPE(type)
 
#define EVENT_CLASS_CATEGORY(category)   virtual int GetCategoryFlags() const override { return category; }
 

Enumerations

enum class  Elevate::EventType {
  Elevate::None = 0 , Elevate::GameContextChanged , Elevate::WindowClose , Elevate::WindowResize ,
  Elevate::WindowFocus , Elevate::AppTick , Elevate::AppUpdate , Elevate::AppRender ,
  Elevate::KeyPressed , Elevate::KeyReleased , Elevate::KeyTyped , Elevate::MouseButtonPressed ,
  Elevate::MouseButtonReleased , Elevate::MouseMoved , Elevate::MouseScrolled
}
 
enum  Elevate::EventCategory : uint8_t {
  Elevate::None = 0 , Elevate::EventCategoryApplication = BIT(0) , Elevate::EventCategoryInput = BIT(1) , Elevate::EventCategoryKeyboard = BIT(2) ,
  Elevate::EventCategoryMouse = BIT(3) , Elevate::EventCategoryMouseButton = BIT(4) , Elevate::EventCategoryGameContext = BIT(5)
}
 

Functions

std::ostream & Elevate::operator<< (std::ostream &os, const Event &e)
 

Macro Definition Documentation

◆ EVENT_CLASS_CATEGORY

#define EVENT_CLASS_CATEGORY (   category)    virtual int GetCategoryFlags() const override { return category; }

Definition at line 35 of file Event.h.

◆ EVENT_CLASS_TYPE

#define EVENT_CLASS_TYPE (   type)
Value:
static EventType GetStaticType() { return EventType::type; }\
virtual EventType GetEventType() const override { return GetStaticType(); }\
virtual const char* GetName() const override { return #type; }

Definition at line 31 of file Event.h.

31 { return EventType::type; }\
32 virtual EventType GetEventType() const override { return GetStaticType(); }\
33 virtual const char* GetName() const override { return #type; }
EventType
Definition Event.h:11