Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TimerSDL Class Reference

elapsed time since the last call in milliseconds. More...

#include <timersdl.h>

Inheritance diagram for TimerSDL:

Inheritance graph
[legend]
Collaboration diagram for TimerSDL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TimerSDL ()
virtual ~TimerSDL ()
virtual bool Init (kerosin::InputSystem *inputSystem)
 init the device
virtual int EventFilter (const SDL_Event *event)
 this filters an SDL specific input
void GetInput (kerosin::InputServer::Input &input)
 return an Input

Protected Attributes

unsigned long mLastTicks

Detailed Description

elapsed time since the last call in milliseconds.

Definition at line 35 of file timersdl.h.


Constructor & Destructor Documentation

TimerSDL::TimerSDL  ) 
 

Definition at line 27 of file timersdl.cpp.

TimerSDL::~TimerSDL  )  [virtual]
 

Definition at line 31 of file timersdl.cpp.


Member Function Documentation

int TimerSDL::EventFilter const SDL_Event *  event  )  [virtual]
 

this filters an SDL specific input

Implements InputDeviceSDL.

Definition at line 49 of file timersdl.cpp.

void TimerSDL::GetInput kerosin::InputServer::Input input  ) 
 

return an Input

Definition at line 55 of file timersdl.cpp.

References kerosin::InputServer::Input::code, kerosin::InputServer::Input::data, kerosin::InputServer::eAxis, kerosin::InputSystem::GetInputServer(), kerosin::InputServer::IC_AXIST, kerosin::InputDevice::mInputSystem, mLastTicks, and kerosin::InputServer::Input::type.

Here is the call graph for this function:

bool TimerSDL::Init kerosin::InputSystem inputSystem  )  [virtual]
 

init the device

Reimplemented from kerosin::InputDevice.

Definition at line 36 of file timersdl.cpp.

References kerosin::InputDevice::Init(), and mLastTicks.

Here is the call graph for this function:


Member Data Documentation

unsigned long TimerSDL::mLastTicks [protected]
 

Definition at line 54 of file timersdl.h.

Referenced by GetInput(), and Init().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:41:26 2006 for rcssserver3d by  doxygen 1.4.4