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

kerosin::InputSystem Class Reference

#include <inputsystem.h>

Inheritance diagram for kerosin::InputSystem:

Inheritance graph
[legend]
Collaboration diagram for kerosin::InputSystem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InputSystem ()
virtual ~InputSystem ()
virtual bool Init (kerosin::InputServer *inputServer)
 init the subsystem
virtual bool CreateDevice (const std::string &deviceName)=0
 creates an instance of a device via zeitgeist object creation.
virtual void AddInput (InputServer::Input &input)
 Add the input to the queue.
void AddInputInternal (InputServer::Input &input)
 this is the actual addition of input to the queue.
virtual bool GetInput (InputServer::Input &input)
 retrieve an input from the queue
InputServerGetInputServer ()

Protected Member Functions

virtual bool UpdateTimerInput (InputServer::Input &input)

Protected Attributes

InputServermInputServer

Private Attributes

std::deque< InputServer::InputmInputQueue

Detailed Description

Definition at line 47 of file inputsystem.h.


Constructor & Destructor Documentation

InputSystem::InputSystem  ) 
 

Definition at line 27 of file inputsystem.cpp.

InputSystem::~InputSystem  )  [virtual]
 

Definition at line 31 of file inputsystem.cpp.


Member Function Documentation

void InputSystem::AddInput InputServer::Input input  )  [virtual]
 

Add the input to the queue.

Uses AddInputInternal. This was necessary to allow derived classes to wrap this call in a mutex and use the definitely unwrapped addition via AddInputInternal().

Reimplemented in InputSystemSDL.

Definition at line 44 of file inputsystem.cpp.

References AddInputInternal().

Here is the call graph for this function:

void InputSystem::AddInputInternal InputServer::Input input  ) 
 

this is the actual addition of input to the queue.

It should only be used by InputDevices!

Definition at line 73 of file inputsystem.cpp.

References mInputQueue.

Referenced by AddInput(), MouseSDL::EventFilter(), and KeyboardSDL::EventFilter().

virtual bool kerosin::InputSystem::CreateDevice const std::string &  deviceName  )  [pure virtual]
 

creates an instance of a device via zeitgeist object creation.

Should use name mangling.

Implemented in InputSystemSDL.

bool InputSystem::GetInput InputServer::Input input  )  [virtual]
 

retrieve an input from the queue

Reimplemented in InputSystemSDL.

Definition at line 50 of file inputsystem.cpp.

References mInputQueue, and UpdateTimerInput().

Here is the call graph for this function:

InputServer* kerosin::InputSystem::GetInputServer  )  [inline]
 

Definition at line 79 of file inputsystem.h.

References mInputServer.

Referenced by MouseSDL::EventFilter(), KeyboardSDL::EventFilter(), and TimerSDL::GetInput().

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

init the subsystem

Reimplemented in InputSystemSDL.

Definition at line 36 of file inputsystem.cpp.

References mInputServer.

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

Reimplemented in InputSystemSDL.

Definition at line 79 of file inputsystem.cpp.

Referenced by GetInput().


Member Data Documentation

std::deque<InputServer::Input> kerosin::InputSystem::mInputQueue [private]
 

Definition at line 91 of file inputsystem.h.

Referenced by AddInputInternal(), and GetInput().

InputServer* kerosin::InputSystem::mInputServer [protected]
 

Definition at line 88 of file inputsystem.h.

Referenced by GetInputServer(), and Init().


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