Public Types | Public Member Functions | List of all members
nom::EventDispatcher Class Reference

Public Types

enum  UserEvent : int32 {
  Unknown = 0, AI, Animation, Application,
  Audio, General, Library, State,
  UI
}
 Definition type of the event we are dispatching.
 

Public Member Functions

int32 push (SDL_Event *event, int32 code, void *params)
 
int32 dispatch (enum UserEvent code, void *params=nullptr)
 

Detailed Description

Definition at line 41 of file EventDispatcher.hpp.

Member Function Documentation

int32 nom::EventDispatcher::dispatch ( enum UserEvent  code,
void *  params = nullptr 
)

Dispatch an event

Todo:
Use SDL2's register event function

Definition at line 64 of file EventDispatcher.cpp.

Here is the call graph for this function:

int32 nom::EventDispatcher::push ( SDL_Event *  event,
int32  code,
void *  params 
)

Internal method wrapper for dispatch

Todo:
Use SDL2's register event function

Definition at line 43 of file EventDispatcher.cpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: