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

InputSystemSDL Class Reference

#include <inputsystemsdl.h>

Inheritance diagram for InputSystemSDL:

Inheritance graph
[legend]
Collaboration diagram for InputSystemSDL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InputSystemSDL ()
virtual ~InputSystemSDL ()
virtual bool Init (kerosin::InputServer *inputServer)
 init the subsystem
virtual bool CreateDevice (const std::string &deviceName)
 creates an instance of a device via zeitgeist object creation.
SDL_mutex * GetMutex () const
int EventFilter (const SDL_Event *event)
virtual void AddInput (kerosin::InputServer::Input &input)
 add the input to the queue
virtual bool GetInput (kerosin::InputServer::Input &input)
 retrieve an input from the queue

Protected Member Functions

virtual bool UpdateTimerInput (kerosin::InputServer::Input &input)

Private Attributes

SDL_mutex * mMutex
boost::shared_ptr< TimerSDLmTimer

Detailed Description

Definition at line 39 of file inputsystemsdl.h.


Constructor & Destructor Documentation

InputSystemSDL::InputSystemSDL  ) 
 

Definition at line 59 of file inputsystemsdl.cpp.

InputSystemSDL::~InputSystemSDL  )  [virtual]
 

Definition at line 64 of file inputsystemsdl.cpp.

References mMutex.


Member Function Documentation

void InputSystemSDL::AddInput kerosin::InputServer::Input input  )  [virtual]
 

add the input to the queue

Reimplemented from kerosin::InputSystem.

Definition at line 167 of file inputsystemsdl.cpp.

References mMutex.

bool InputSystemSDL::CreateDevice const std::string &  deviceName  )  [virtual]
 

creates an instance of a device via zeitgeist object creation.

Should use name mangling.

Implements kerosin::InputSystem.

Definition at line 98 of file inputsystemsdl.cpp.

References zeitgeist::Node::AddChildReference(), zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), mMutex, and mTimer.

Here is the call graph for this function:

int InputSystemSDL::EventFilter const SDL_Event *  event  ) 
 

Definition at line 146 of file inputsystemsdl.cpp.

References zeitgeist::Node::mChildren, and mMutex.

Referenced by EventFilterCallback().

bool InputSystemSDL::GetInput kerosin::InputServer::Input input  )  [virtual]
 

retrieve an input from the queue

Reimplemented from kerosin::InputSystem.

Definition at line 174 of file inputsystemsdl.cpp.

References mMutex.

SDL_mutex* InputSystemSDL::GetMutex  )  const
 

bool InputSystemSDL::Init kerosin::InputServer inputServer  )  [virtual]
 

init the subsystem

Reimplemented from kerosin::InputSystem.

Definition at line 75 of file inputsystemsdl.cpp.

References EventFilterCallback(), zeitgeist::Object::GetLog(), and mMutex.

Here is the call graph for this function:

bool InputSystemSDL::UpdateTimerInput kerosin::InputServer::Input input  )  [protected, virtual]
 

Reimplemented from kerosin::InputSystem.

Definition at line 183 of file inputsystemsdl.cpp.

References mTimer.


Member Data Documentation

SDL_mutex* InputSystemSDL::mMutex [private]
 

Definition at line 67 of file inputsystemsdl.h.

Referenced by AddInput(), CreateDevice(), EventFilter(), GetInput(), Init(), and ~InputSystemSDL().

boost::shared_ptr<TimerSDL> InputSystemSDL::mTimer [private]
 

Definition at line 69 of file inputsystemsdl.h.

Referenced by CreateDevice(), and UpdateTimerInput().


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