![]() |
Max OS 0.3
|
Used to store information about an event, has a type and a return value. More...
#include <eventHandler.h>
Public Member Functions | |
| Event (EventType type) | |
| Constructs a new Event object. | |
Public Attributes | ||
| EventType | type | |
| union { | ||
| uint8_t * buffer_value | ||
| uint32_t int_value | ||
| bool bool_value | ||
| } | return_value | |
Used to store information about an event, has a type and a return value.
| EventType | The type of event |
deprecate, things that should fire events should have their own event firer class and things that connect to it, dont have a class per event
events should be made on stack and passed as references not pointers for better perf
Definition at line 31 of file eventHandler.h.
|
explicit |
Constructs a new Event object.
| EventType | The type of event |
| type | The type of the event |
Definition at line 86 of file eventHandler.h.
| bool MaxOS::common::Event< EventType >::bool_value |
Definition at line 41 of file eventHandler.h.
| uint8_t* MaxOS::common::Event< EventType >::buffer_value |
Definition at line 39 of file eventHandler.h.
| uint32_t MaxOS::common::Event< EventType >::int_value |
Definition at line 40 of file eventHandler.h.
| union { ... } MaxOS::common::Event< EventType >::return_value |
| EventType MaxOS::common::Event< EventType >::type |
Definition at line 36 of file eventHandler.h.