A recorded event. More...
#include <EventRecorder.h>
Public Types | |
enum | EventType { DISPLAY, MOUSE, MOTION, PASSIVEMOTION, WHEEL, KEYBOARD, SPECIAL } |
Public Member Functions | |
Event () | |
Creates an uninitialized event. | |
Event (double t, double dt, float groundHeight) | |
Creates a new DISPLAY event. | |
Event (EventType kind, int m, int arg1=0, int arg2=0, int arg3=0, int arg4=0) | |
Creates a new event. | |
Public Attributes | |
EventType | kind |
type of this event | |
int | m |
the modifiers state when this event was recorded. | |
int | arg1 |
first event argument. Value depends on event type. | |
int | arg2 |
second event argument. Value depends on event type. | |
int | arg3 |
third event argument. Value depends on event type. | |
int | arg4 |
fourth event argument. Value depends on event type. |
A recorded event.
proland::EventRecorder::Event::Event | ( | ) |
Creates an uninitialized event.
proland::EventRecorder::Event::Event | ( | double | t, | |
double | dt, | |||
float | groundHeight | |||
) |
Creates a new DISPLAY event.
t | the time at which this event was recorded. | |
proland::EventRecorder::Event::Event | ( | EventType | kind, | |
int | m, | |||
int | arg1 = 0 , |
|||
int | arg2 = 0 , |
|||
int | arg3 = 0 , |
|||
int | arg4 = 0 | |||
) |
Creates a new event.
kind | the event type. | |
m | the current modifiers state. | |
arg1 | first event argumemt. Value depends on event type. | |
arg2 | second event argumemt. Value depends on event type. | |
arg3 | third event argumemt. Value depends on event type. | |
arg4 | fourth event argumemt. Value depends on event type. |
first event argument. Value depends on event type.
second event argument. Value depends on event type.
third event argument. Value depends on event type.
fourth event argument. Value depends on event type.
type of this event
the modifiers state when this event was recorded.