luna engine
software engine
Loading...
Searching...
No Matches
event.h File Reference
#include <lnpch.h>
#include <core/core.h>
Include dependency graph for event.h:
This graph shows which files directly or indirectly include this file:

Classes

class  luna::Event
 
class  luna::eventDispatcher
 

Namespaces

namespace  luna
 

Macros

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

Enumerations

enum class  luna::eventType {
  luna::None = 0 , luna::WindowClose , luna::WindowResize , luna::WindowFocus ,
  luna::WindowLostFocus , luna::WindowMoved , luna::AppTick , luna::AppUpdate ,
  luna::AppRender , luna::KeyPressed , luna::KeyReleased , luna::KeyTyped ,
  luna::MouseButtonPressed , luna::MouseButtonReleased , luna::MouseMoved , luna::MouseScrolled
}
 
enum  luna::eventCategory {
  luna::None = 0 , luna::eventCategoryApplication = BIT(0) , luna::eventCategoryInput = BIT(1) , luna::eventCategoryKeyboard = BIT(2) ,
  luna::eventCategoryMouse = BIT(3) , luna::eventCategoryMouseButton = BIT(4)
}
 

Functions

std::ostream & luna::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; }

◆ 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; }