proland::EventRecorder::Event Struct Reference

A recorded event. More...

#include <EventRecorder.h>

List of all members.

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.

Detailed Description

A recorded event.


Member Enumeration Documentation

Enumerator:
DISPLAY 

EventHandler::redisplay.

MOUSE 

EventHandler::mouseClick.

MOTION 

EventHandler::mouseMotion.

PASSIVEMOTION 

EventHandler::mousePassiveMotion.

WHEEL 

EventHandler::mouseWheel.

KEYBOARD 

EventHandler::keyType and EventHandler::keyReleased.

SPECIAL 

EventHandler::specialKey and EventHandler::specialKeyReleased.


Constructor & Destructor Documentation

proland::EventRecorder::Event::Event (  ) 

Creates an uninitialized event.

proland::EventRecorder::Event::Event ( double  t,
double  dt,
float  groundHeight 
)

Creates a new DISPLAY event.

Parameters:
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.

Parameters:
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.

Member Data Documentation

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.


Generated on Sat May 12 09:41:39 2012 for proland by  doxygen 1.6.1