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

KeyboardSDL Class Reference

#include <keyboardsdl.h>

Inheritance diagram for KeyboardSDL:

Inheritance graph
[legend]
Collaboration diagram for KeyboardSDL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KeyboardSDL ()
virtual ~KeyboardSDL ()
virtual bool Init (kerosin::InputSystem *inputSystem)
 init the device
virtual int EventFilter (const SDL_Event *event)
 this filters an SDL specific input

Protected Types

typedef std::map< int, int > TSymMap

Protected Member Functions

void SetupSymMap ()
 sets up the mapping from SDL key constants to InputServer key constants
bool TranslateSymbol (int &sym)
 translates a SDL key constant to an InputServer key constant.

Protected Attributes

TSymMap mSymbols
 mapping fomr SDL key constants to InputServer key constants

Detailed Description

Definition at line 31 of file keyboardsdl.h.


Member Typedef Documentation

typedef std::map<int,int> KeyboardSDL::TSymMap [protected]
 

Definition at line 58 of file keyboardsdl.h.


Constructor & Destructor Documentation

KeyboardSDL::KeyboardSDL  ) 
 

Definition at line 28 of file keyboardsdl.cpp.

References SetupSymMap().

Here is the call graph for this function:

KeyboardSDL::~KeyboardSDL  )  [virtual]
 

Definition at line 33 of file keyboardsdl.cpp.


Member Function Documentation

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

this filters an SDL specific input

Implements InputDeviceSDL.

Definition at line 204 of file keyboardsdl.cpp.

References kerosin::InputSystem::AddInputInternal(), kerosin::InputServer::Input::data, kerosin::InputServer::eButton, kerosin::InputServer::eLAlt, kerosin::InputServer::eLShift, kerosin::InputServer::eRAlt, kerosin::InputServer::eRShift, kerosin::InputSystem::GetInputServer(), zeitgeist::Object::GetLog(), kerosin::InputDevice::mInputSystem, kerosin::InputServer::mModifierState, and TranslateSymbol().

Here is the call graph for this function:

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

init the device

Reimplemented from kerosin::InputDevice.

Definition at line 185 of file keyboardsdl.cpp.

References kerosin::InputDevice::Init().

Here is the call graph for this function:

void KeyboardSDL::SetupSymMap  )  [protected]
 

sets up the mapping from SDL key constants to InputServer key constants

Definition at line 37 of file keyboardsdl.cpp.

References kerosin::InputServer::IC_0, kerosin::InputServer::IC_1, kerosin::InputServer::IC_2, kerosin::InputServer::IC_3, kerosin::InputServer::IC_4, kerosin::InputServer::IC_5, kerosin::InputServer::IC_6, kerosin::InputServer::IC_7, kerosin::InputServer::IC_8, kerosin::InputServer::IC_9, kerosin::InputServer::IC_A, kerosin::InputServer::IC_B, kerosin::InputServer::IC_BACKSLASH, kerosin::InputServer::IC_BACKSPACE, kerosin::InputServer::IC_C, kerosin::InputServer::IC_CAPSLOCK, kerosin::InputServer::IC_COMMA, kerosin::InputServer::IC_D, kerosin::InputServer::IC_DELETE, kerosin::InputServer::IC_DOWN, kerosin::InputServer::IC_E, kerosin::InputServer::IC_END, kerosin::InputServer::IC_EQUALS, kerosin::InputServer::IC_ESCAPE, kerosin::InputServer::IC_F, kerosin::InputServer::IC_F1, kerosin::InputServer::IC_F10, kerosin::InputServer::IC_F11, kerosin::InputServer::IC_F12, kerosin::InputServer::IC_F2, kerosin::InputServer::IC_F3, kerosin::InputServer::IC_F4, kerosin::InputServer::IC_F5, kerosin::InputServer::IC_F6, kerosin::InputServer::IC_F7, kerosin::InputServer::IC_F8, kerosin::InputServer::IC_F9, kerosin::InputServer::IC_G, kerosin::InputServer::IC_H, kerosin::InputServer::IC_HOME, kerosin::InputServer::IC_I, kerosin::InputServer::IC_INSERT, kerosin::InputServer::IC_J, kerosin::InputServer::IC_K, kerosin::InputServer::IC_KP0, kerosin::InputServer::IC_KP1, kerosin::InputServer::IC_KP2, kerosin::InputServer::IC_KP3, kerosin::InputServer::IC_KP4, kerosin::InputServer::IC_KP5, kerosin::InputServer::IC_KP6, kerosin::InputServer::IC_KP7, kerosin::InputServer::IC_KP8, kerosin::InputServer::IC_KP9, kerosin::InputServer::IC_KP_DECIMAL, kerosin::InputServer::IC_KP_DIVIDE, kerosin::InputServer::IC_KP_ENTER, kerosin::InputServer::IC_KP_MINUS, kerosin::InputServer::IC_KP_MULTIPLY, kerosin::InputServer::IC_KP_PLUS, kerosin::InputServer::IC_L, kerosin::InputServer::IC_LALT, kerosin::InputServer::IC_LBRACKET, kerosin::InputServer::IC_LCTRL, kerosin::InputServer::IC_LEFT, kerosin::InputServer::IC_LSHIFT, kerosin::InputServer::IC_LSUPER, kerosin::InputServer::IC_M, kerosin::InputServer::IC_MINUS, kerosin::InputServer::IC_N, kerosin::InputServer::IC_NUMLOCK, kerosin::InputServer::IC_O, kerosin::InputServer::IC_P, kerosin::InputServer::IC_PAGEDOWN, kerosin::InputServer::IC_PAGEUP, kerosin::InputServer::IC_PAUSE, kerosin::InputServer::IC_PERIOD, kerosin::InputServer::IC_PRINT, kerosin::InputServer::IC_Q, kerosin::InputServer::IC_R, kerosin::InputServer::IC_RALT, kerosin::InputServer::IC_RBRACKET, kerosin::InputServer::IC_RCTRL, kerosin::InputServer::IC_RETURN, kerosin::InputServer::IC_RIGHT, kerosin::InputServer::IC_RSHIFT, kerosin::InputServer::IC_RSUPER, kerosin::InputServer::IC_S, kerosin::InputServer::IC_SCROLLOCK, kerosin::InputServer::IC_SEMICOLON, kerosin::InputServer::IC_SLASH, kerosin::InputServer::IC_SPACE, kerosin::InputServer::IC_T, kerosin::InputServer::IC_U, kerosin::InputServer::IC_UP, kerosin::InputServer::IC_V, kerosin::InputServer::IC_W, kerosin::InputServer::IC_X, kerosin::InputServer::IC_Y, kerosin::InputServer::IC_Z, and mSymbols.

Referenced by KeyboardSDL().

bool KeyboardSDL::TranslateSymbol int &  sym  )  [protected]
 

translates a SDL key constant to an InputServer key constant.

returns true on success

Definition at line 191 of file keyboardsdl.cpp.

References mSymbols.

Referenced by EventFilter().


Member Data Documentation

TSymMap KeyboardSDL::mSymbols [protected]
 

mapping fomr SDL key constants to InputServer key constants

Definition at line 61 of file keyboardsdl.h.

Referenced by SetupSymMap(), and TranslateSymbol().


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