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

kerosin::InputServer Class Reference

#include <inputserver.h>

Inheritance diagram for kerosin::InputServer:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef int TInputCode
typedef std::list< BindTBindList
typedef std::map< int, TBindListTBindMap
enum  EModifiers {
  eNone = 0x0000, eLShift = 0x0001, eRShift = 0x0002, eShift = 0x0003,
  eLCtrl = 0x0040, eRCtrl = 0x0080, eCtrl = 0x00c0, eLAlt = 0x0100,
  eRAlt = 0x0200, eAlt = 0x0300, eNum = 0x1000, eCaps = 0x2000
}
enum  EType { eUnknown, eButton, eAxis, eUser }
 this enumerates different tpyes of input events. More...
enum  EBindEvent { eKeyUp = 1, eKeyDown = 2, eKeyUpDown = 3 }
 this enumerates different filters that describing which button events are translated to user defined values (aka bindings). More...

Public Member Functions

 InputServer ()
 ~InputServer ()
bool Init (const std::string &inputSysName)
 creates and registers the given InputSystem
bool CreateDevice (const std::string &deviceName)
 delegates device creation to the active input system
void Reset ()
 this function resets the currently active inputsystem (read: destroys it)
bool GetInput (Input &input, bool raw=false)
bool BindCommand (const std::string &desc, int cmd)
 Bind() allows a user specified command id (cmd) to be bound to an input event described by a string (desc).
void SetScanCodeMapping (const std::string &name)
 sets the name of the input mapping to be imported on init, the name of a ruby script is expected
void AddCode (TInputCode ic, const std::string &name, char noMod, char shiftMod, char altMod)
 add a code to the scancode map
bool TranslateCode (TInputCode code, unsigned long state, char &ch) const
 convert an inputcode back into a displayable character.
void Invoke (int cmd)
 invoke a certain input event

Public Attributes

unsigned int mModifierState

Static Public Attributes

static const TInputCode IC_1 = 0x02
static const TInputCode IC_2 = 0x03
static const TInputCode IC_3 = 0x04
static const TInputCode IC_4 = 0x05
static const TInputCode IC_5 = 0x06
static const TInputCode IC_6 = 0x07
static const TInputCode IC_7 = 0x08
static const TInputCode IC_8 = 0x09
static const TInputCode IC_9 = 0x0a
static const TInputCode IC_0 = 0x0b
static const TInputCode IC_F1 = 0x3b
static const TInputCode IC_F2 = 0x3c
static const TInputCode IC_F3 = 0x3d
static const TInputCode IC_F4 = 0x3e
static const TInputCode IC_F5 = 0x3f
static const TInputCode IC_F6 = 0x40
static const TInputCode IC_F7 = 0x41
static const TInputCode IC_F8 = 0x42
static const TInputCode IC_F9 = 0x43
static const TInputCode IC_F10 = 0x44
static const TInputCode IC_F11 = 0x57
static const TInputCode IC_F12 = 0x58
static const TInputCode IC_A = 0x1e
static const TInputCode IC_B = 0x30
static const TInputCode IC_C = 0x2e
static const TInputCode IC_D = 0x20
static const TInputCode IC_E = 0x12
static const TInputCode IC_F = 0x21
static const TInputCode IC_G = 0x22
static const TInputCode IC_H = 0x23
static const TInputCode IC_I = 0x17
static const TInputCode IC_J = 0x24
static const TInputCode IC_K = 0x25
static const TInputCode IC_L = 0x26
static const TInputCode IC_M = 0x32
static const TInputCode IC_N = 0x31
static const TInputCode IC_O = 0x18
static const TInputCode IC_P = 0x19
static const TInputCode IC_Q = 0x10
static const TInputCode IC_R = 0x13
static const TInputCode IC_S = 0x1f
static const TInputCode IC_T = 0x14
static const TInputCode IC_U = 0x16
static const TInputCode IC_V = 0x2f
static const TInputCode IC_W = 0x11
static const TInputCode IC_X = 0x2d
static const TInputCode IC_Y = 0x15
static const TInputCode IC_Z = 0x2c
static const TInputCode IC_KP0 = 0x52
static const TInputCode IC_KP1 = 0x4f
static const TInputCode IC_KP2 = 0x50
static const TInputCode IC_KP3 = 0x51
static const TInputCode IC_KP4 = 0x4b
static const TInputCode IC_KP5 = 0x4c
static const TInputCode IC_KP6 = 0x4d
static const TInputCode IC_KP7 = 0x47
static const TInputCode IC_KP8 = 0x48
static const TInputCode IC_KP9 = 0x49
static const TInputCode IC_KP_DECIMAL = 0x53
static const TInputCode IC_KP_DIVIDE = 0xb5
static const TInputCode IC_KP_MULTIPLY = 0x37
static const TInputCode IC_KP_MINUS = 0x4a
static const TInputCode IC_KP_PLUS = 0x4e
static const TInputCode IC_KP_ENTER = 0x8d
static const TInputCode IC_UP = 0xc8
static const TInputCode IC_DOWN = 0xd0
static const TInputCode IC_LEFT = 0xcb
static const TInputCode IC_RIGHT = 0xcd
static const TInputCode IC_INSERT = 0xd2
static const TInputCode IC_DELETE = 0xd3
static const TInputCode IC_HOME = 0xc7
static const TInputCode IC_END = 0xcf
static const TInputCode IC_PAGEUP = 0xc9
static const TInputCode IC_PAGEDOWN = 0xd1
static const TInputCode IC_NUMLOCK = 0x45
static const TInputCode IC_CAPSLOCK = 0x3a
static const TInputCode IC_SCROLLOCK = 0x46
static const TInputCode IC_LSHIFT = 0x2a
static const TInputCode IC_RSHIFT = 0x36
static const TInputCode IC_LCTRL = 0x1d
static const TInputCode IC_RCTRL = 0x9d
static const TInputCode IC_LALT = 0x38
static const TInputCode IC_RALT = 0xb8
static const TInputCode IC_LSUPER = 0xdb
static const TInputCode IC_RSUPER = 0xdc
static const TInputCode IC_ESCAPE = 0x01
static const TInputCode IC_PRINT = 0xb7
static const TInputCode IC_PAUSE = 0xc5
static const TInputCode IC_GRAVE = 0x29
static const TInputCode IC_MINUS = 0x0c
static const TInputCode IC_EQUALS = 0x0d
static const TInputCode IC_BACKSLASH = 0x2b
static const TInputCode IC_BACKSPACE = 0x0e
static const TInputCode IC_TAB = 0x0f
static const TInputCode IC_LBRACKET = 0x1a
static const TInputCode IC_RBRACKET = 0x1b
static const TInputCode IC_RETURN = 0x1c
static const TInputCode IC_SEMICOLON = 0x27
static const TInputCode IC_APOSTROPHE = 0x28
static const TInputCode IC_OEM_102 = 0x56
static const TInputCode IC_COMMA = 0x33
static const TInputCode IC_PERIOD = 0x34
static const TInputCode IC_SLASH = 0x35
static const TInputCode IC_SPACE = 0x39
static const TInputCode IC_MOUSE_LEFT = 0x1000
static const TInputCode IC_MOUSE_RIGHT = 0x1001
static const TInputCode IC_MOUSE_MIDDLE = 0x1002
static const TInputCode IC_AXISX = 0x2000
static const TInputCode IC_AXISY = 0x2001
static const TInputCode IC_AXISZ = 0x2002
static const TInputCode IC_AXIST = 0x3000

Private Types

typedef std::list< InputDevice * > TDeviceList

Private Member Functions

bool ParseBindDescription (Bind &bind, const std::string &desc)
int ParseModifier (const std::string &modifier) const
boost::shared_ptr< InputSystemGetInputSystem ()

Private Attributes

std::string mScanCodeScript
 the name of the scan code script to be imported
boost::shared_ptr< ScanCodeMapmScanCodeMap
 the scan code mapping
TBindMap mBindings
 map of active bindings

Classes

struct  Bind
 this defines a bind, i.e. More...
struct  Input
 this defines the input data structure, encapsulating all input events generated by the devices. More...

Detailed Description

Definition at line 60 of file inputserver.h.


Member Typedef Documentation

typedef std::list<Bind> kerosin::InputServer::TBindList
 

Definition at line 165 of file inputserver.h.

typedef std::map<int, TBindList> kerosin::InputServer::TBindMap
 

Definition at line 170 of file inputserver.h.

typedef std::list<InputDevice*> kerosin::InputServer::TDeviceList [private]
 

Definition at line 66 of file inputserver.h.

typedef int kerosin::InputServer::TInputCode
 

Definition at line 69 of file inputserver.h.


Member Enumeration Documentation

enum kerosin::InputServer::EBindEvent
 

this enumerates different filters that describing which button events are translated to user defined values (aka bindings).

Enumerator:
eKeyUp 
eKeyDown 
eKeyUpDown 

Definition at line 143 of file inputserver.h.

enum kerosin::InputServer::EModifiers
 

Enumerator:
eNone 
eLShift 
eRShift 
eShift 
eLCtrl 
eRCtrl 
eCtrl 
eLAlt 
eRAlt 
eAlt 
eNum 
eCaps 

Definition at line 71 of file inputserver.h.

enum kerosin::InputServer::EType
 

this enumerates different tpyes of input events.

Enumerator:
eUnknown 
eButton 
eAxis 
eUser 

Definition at line 88 of file inputserver.h.


Constructor & Destructor Documentation

InputServer::InputServer  ) 
 

Definition at line 169 of file inputserver.cpp.

References mScanCodeScript.

InputServer::~InputServer  ) 
 

Definition at line 176 of file inputserver.cpp.

References Reset().

Here is the call graph for this function:


Member Function Documentation

void InputServer::AddCode TInputCode  ic,
const std::string &  name,
char  noMod,
char  shiftMod,
char  altMod
 

add a code to the scancode map

Definition at line 498 of file inputserver.cpp.

References mScanCodeMap.

bool InputServer::BindCommand const std::string &  desc,
int  cmd
 

Bind() allows a user specified command id (cmd) to be bound to an input event described by a string (desc).

Examples for desc:

"b" b pressed/released "+b" b pressed "-b" b released "minus" - pressed/released "shift a" a pressed/released while shift (left or right) is being held

The basic syntax is: (modifier ' ')* ['+'|'-'] inputcode

Definition at line 471 of file inputserver.cpp.

References kerosin::InputServer::Bind::cmd, kerosin::InputServer::Bind::code, mBindings, and ParseBindDescription().

Here is the call graph for this function:

bool InputServer::CreateDevice const std::string &  deviceName  ) 
 

delegates device creation to the active input system

Definition at line 365 of file inputserver.cpp.

References GetInputSystem(), and zeitgeist::Object::GetLog().

Here is the call graph for this function:

bool InputServer::GetInput Input input,
bool  raw = false
 

Definition at line 399 of file inputserver.cpp.

References kerosin::InputServer::Bind::cmd, kerosin::InputServer::Input::code, kerosin::InputServer::Input::data, eAxis, eButton, eKeyDown, eKeyUp, eKeyUpDown, eUser, kerosin::InputServer::Bind::event, GetInputSystem(), zeitgeist::Object::GetLog(), kerosin::InputServer::Input::id, mBindings, mModifierState, kerosin::InputServer::Bind::modifier, and kerosin::InputServer::Input::type.

Here is the call graph for this function:

shared_ptr< InputSystem > InputServer::GetInputSystem  )  [private]
 

Definition at line 356 of file inputserver.cpp.

References zeitgeist::Node::GetChild().

Referenced by CreateDevice(), GetInput(), Invoke(), and Reset().

Here is the call graph for this function:

bool InputServer::Init const std::string &  inputSysName  ) 
 

creates and registers the given InputSystem

Definition at line 181 of file inputserver.cpp.

References zeitgeist::Node::AddChildReference(), zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), zeitgeist::Object::GetScript(), IC_0, IC_1, IC_2, IC_3, IC_4, IC_5, IC_6, IC_7, IC_8, IC_9, IC_A, IC_APOSTROPHE, IC_AXIST, IC_AXISX, IC_AXISY, IC_AXISZ, IC_B, IC_BACKSLASH, IC_BACKSPACE, IC_C, IC_CAPSLOCK, IC_COMMA, IC_D, IC_DELETE, IC_DOWN, IC_E, IC_END, IC_EQUALS, IC_ESCAPE, IC_F, IC_F1, IC_F10, IC_F11, IC_F12, IC_F2, IC_F3, IC_F4, IC_F5, IC_F6, IC_F7, IC_F8, IC_F9, IC_G, IC_GRAVE, IC_H, IC_HOME, IC_I, IC_INSERT, IC_J, IC_K, IC_KP0, IC_KP1, IC_KP2, IC_KP3, IC_KP4, IC_KP5, IC_KP6, IC_KP7, IC_KP8, IC_KP9, IC_KP_DECIMAL, IC_KP_DIVIDE, IC_KP_ENTER, IC_KP_MINUS, IC_KP_MULTIPLY, IC_KP_PLUS, IC_L, IC_LALT, IC_LBRACKET, IC_LCTRL, IC_LEFT, IC_LSHIFT, IC_LSUPER, IC_M, IC_MINUS, IC_MOUSE_LEFT, IC_MOUSE_MIDDLE, IC_MOUSE_RIGHT, IC_N, IC_NUMLOCK, IC_O, IC_OEM_102, IC_P, IC_PAGEDOWN, IC_PAGEUP, IC_PAUSE, IC_PERIOD, IC_PRINT, IC_Q, IC_R, IC_RALT, IC_RBRACKET, IC_RCTRL, IC_RETURN, IC_RIGHT, IC_RSHIFT, IC_RSUPER, IC_S, IC_SCROLLOCK, IC_SEMICOLON, IC_SLASH, IC_SPACE, IC_T, IC_TAB, IC_U, IC_UP, IC_V, IC_W, IC_X, IC_Y, IC_Z, zeitgeist::ScriptServer::IS_COMMON, mScanCodeScript, and Reset().

Here is the call graph for this function:

void InputServer::Invoke int  cmd  ) 
 

invoke a certain input event

Definition at line 591 of file inputserver.cpp.

References kerosin::InputServer::Input::code, kerosin::InputServer::Input::data, eUser, GetInputSystem(), zeitgeist::Object::GetLog(), kerosin::InputServer::Input::id, and kerosin::InputServer::Input::type.

Here is the call graph for this function:

bool InputServer::ParseBindDescription Bind bind,
const std::string &  desc
[private]
 

Definition at line 504 of file inputserver.cpp.

References kerosin::InputServer::Bind::code, eKeyDown, eKeyUp, eKeyUpDown, eNone, kerosin::InputServer::Bind::event, zeitgeist::Object::GetLog(), kerosin::InputServer::Bind::modifier, mScanCodeMap, and ParseModifier().

Referenced by BindCommand().

Here is the call graph for this function:

int InputServer::ParseModifier const std::string &  modifier  )  const [private]
 

Definition at line 569 of file inputserver.cpp.

References eAlt, eCtrl, eLAlt, eLCtrl, eLShift, eNone, eRAlt, eRCtrl, eRShift, and eShift.

Referenced by ParseBindDescription().

void InputServer::Reset  ) 
 

this function resets the currently active inputsystem (read: destroys it)

Definition at line 386 of file inputserver.cpp.

References GetInputSystem(), and mScanCodeMap.

Referenced by Init(), and ~InputServer().

Here is the call graph for this function:

void InputServer::SetScanCodeMapping const std::string &  name  ) 
 

sets the name of the input mapping to be imported on init, the name of a ruby script is expected

Definition at line 493 of file inputserver.cpp.

References mScanCodeScript.

bool InputServer::TranslateCode TInputCode  code,
unsigned long  state,
char &  ch
const
 

convert an inputcode back into a displayable character.

Untranslatable codes will return 0

Definition at line 584 of file inputserver.cpp.

References mModifierState, and mScanCodeMap.


Member Data Documentation

const InputServer::TInputCode InputServer::IC_0 = 0x0b [static]
 

Definition at line 242 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_1 = 0x02 [static]
 

Definition at line 233 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_2 = 0x03 [static]
 

Definition at line 234 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_3 = 0x04 [static]
 

Definition at line 235 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_4 = 0x05 [static]
 

Definition at line 236 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_5 = 0x06 [static]
 

Definition at line 237 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_6 = 0x07 [static]
 

Definition at line 238 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_7 = 0x08 [static]
 

Definition at line 239 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_8 = 0x09 [static]
 

Definition at line 240 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_9 = 0x0a [static]
 

Definition at line 241 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_A = 0x1e [static]
 

Definition at line 257 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_APOSTROPHE = 0x28 [static]
 

Definition at line 339 of file inputserver.h.

Referenced by Init().

const InputServer::TInputCode InputServer::IC_AXIST = 0x3000 [static]
 

Definition at line 359 of file inputserver.h.

Referenced by TimerSDL::GetInput(), and Init().

const InputServer::TInputCode InputServer::IC_AXISX = 0x2000 [static]
 

Definition at line 354 of file inputserver.h.

Referenced by MouseSDL::EventFilter(), and Init().

const InputServer::TInputCode InputServer::IC_AXISY = 0x2001 [static]
 

Definition at line 355 of file inputserver.h.

Referenced by MouseSDL::EventFilter(), and Init().

const InputServer::TInputCode InputServer::IC_AXISZ = 0x2002 [static]
 

Definition at line 356 of file inputserver.h.

Referenced by Init().

const InputServer::TInputCode InputServer::IC_B = 0x30 [static]
 

Definition at line 258 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_BACKSLASH = 0x2b [static]
 

Definition at line 330 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_BACKSPACE = 0x0e [static]
 

Definition at line 331 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_C = 0x2e [static]
 

Definition at line 259 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_CAPSLOCK = 0x3a [static]
 

Definition at line 313 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_COMMA = 0x33 [static]
 

Definition at line 342 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_D = 0x20 [static]
 

Definition at line 260 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_DELETE = 0xd3 [static]
 

Definition at line 306 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_DOWN = 0xd0 [static]
 

Definition at line 302 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_E = 0x12 [static]
 

Definition at line 261 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_END = 0xcf [static]
 

Definition at line 308 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_EQUALS = 0x0d [static]
 

Definition at line 329 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_ESCAPE = 0x01 [static]
 

Definition at line 324 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F = 0x21 [static]
 

Definition at line 262 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F1 = 0x3b [static]
 

Definition at line 244 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F10 = 0x44 [static]
 

Definition at line 253 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F11 = 0x57 [static]
 

Definition at line 254 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F12 = 0x58 [static]
 

Definition at line 255 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F2 = 0x3c [static]
 

Definition at line 245 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F3 = 0x3d [static]
 

Definition at line 246 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F4 = 0x3e [static]
 

Definition at line 247 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F5 = 0x3f [static]
 

Definition at line 248 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F6 = 0x40 [static]
 

Definition at line 249 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F7 = 0x41 [static]
 

Definition at line 250 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F8 = 0x42 [static]
 

Definition at line 251 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_F9 = 0x43 [static]
 

Definition at line 252 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_G = 0x22 [static]
 

Definition at line 263 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_GRAVE = 0x29 [static]
 

Definition at line 327 of file inputserver.h.

Referenced by Init().

const InputServer::TInputCode InputServer::IC_H = 0x23 [static]
 

Definition at line 264 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_HOME = 0xc7 [static]
 

Definition at line 307 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_I = 0x17 [static]
 

Definition at line 265 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_INSERT = 0xd2 [static]
 

Definition at line 305 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_J = 0x24 [static]
 

Definition at line 266 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_K = 0x25 [static]
 

Definition at line 267 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP0 = 0x52 [static]
 

Definition at line 284 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP1 = 0x4f [static]
 

Definition at line 285 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP2 = 0x50 [static]
 

Definition at line 286 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP3 = 0x51 [static]
 

Definition at line 287 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP4 = 0x4b [static]
 

Definition at line 288 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP5 = 0x4c [static]
 

Definition at line 289 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP6 = 0x4d [static]
 

Definition at line 290 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP7 = 0x47 [static]
 

Definition at line 291 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP8 = 0x48 [static]
 

Definition at line 292 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP9 = 0x49 [static]
 

Definition at line 293 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP_DECIMAL = 0x53 [static]
 

Definition at line 294 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP_DIVIDE = 0xb5 [static]
 

Definition at line 295 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP_ENTER = 0x8d [static]
 

Definition at line 299 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP_MINUS = 0x4a [static]
 

Definition at line 297 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP_MULTIPLY = 0x37 [static]
 

Definition at line 296 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_KP_PLUS = 0x4e [static]
 

Definition at line 298 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_L = 0x26 [static]
 

Definition at line 268 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_LALT = 0x38 [static]
 

Definition at line 319 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_LBRACKET = 0x1a [static]
 

Definition at line 334 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_LCTRL = 0x1d [static]
 

Definition at line 317 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_LEFT = 0xcb [static]
 

Definition at line 303 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_LSHIFT = 0x2a [static]
 

Definition at line 315 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_LSUPER = 0xdb [static]
 

Definition at line 321 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_M = 0x32 [static]
 

Definition at line 269 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_MINUS = 0x0c [static]
 

Definition at line 328 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_MOUSE_LEFT = 0x1000 [static]
 

Definition at line 349 of file inputserver.h.

Referenced by MouseSDL::EventFilter(), and Init().

const InputServer::TInputCode InputServer::IC_MOUSE_MIDDLE = 0x1002 [static]
 

Definition at line 351 of file inputserver.h.

Referenced by MouseSDL::EventFilter(), and Init().

const InputServer::TInputCode InputServer::IC_MOUSE_RIGHT = 0x1001 [static]
 

Definition at line 350 of file inputserver.h.

Referenced by MouseSDL::EventFilter(), and Init().

const InputServer::TInputCode InputServer::IC_N = 0x31 [static]
 

Definition at line 270 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_NUMLOCK = 0x45 [static]
 

Definition at line 312 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_O = 0x18 [static]
 

Definition at line 271 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_OEM_102 = 0x56 [static]
 

Definition at line 341 of file inputserver.h.

Referenced by Init().

const InputServer::TInputCode InputServer::IC_P = 0x19 [static]
 

Definition at line 272 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_PAGEDOWN = 0xd1 [static]
 

Definition at line 310 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_PAGEUP = 0xc9 [static]
 

Definition at line 309 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_PAUSE = 0xc5 [static]
 

Definition at line 326 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_PERIOD = 0x34 [static]
 

Definition at line 343 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_PRINT = 0xb7 [static]
 

Definition at line 325 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_Q = 0x10 [static]
 

Definition at line 273 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_R = 0x13 [static]
 

Definition at line 274 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_RALT = 0xb8 [static]
 

Definition at line 320 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_RBRACKET = 0x1b [static]
 

Definition at line 335 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_RCTRL = 0x9d [static]
 

Definition at line 318 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_RETURN = 0x1c [static]
 

Definition at line 336 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_RIGHT = 0xcd [static]
 

Definition at line 304 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_RSHIFT = 0x36 [static]
 

Definition at line 316 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_RSUPER = 0xdc [static]
 

Definition at line 322 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_S = 0x1f [static]
 

Definition at line 275 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_SCROLLOCK = 0x46 [static]
 

Definition at line 314 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_SEMICOLON = 0x27 [static]
 

Definition at line 338 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_SLASH = 0x35 [static]
 

Definition at line 344 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_SPACE = 0x39 [static]
 

Definition at line 346 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_T = 0x14 [static]
 

Definition at line 276 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_TAB = 0x0f [static]
 

Definition at line 333 of file inputserver.h.

Referenced by Init().

const InputServer::TInputCode InputServer::IC_U = 0x16 [static]
 

Definition at line 277 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_UP = 0xc8 [static]
 

Definition at line 301 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_V = 0x2f [static]
 

Definition at line 278 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_W = 0x11 [static]
 

Definition at line 279 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_X = 0x2d [static]
 

Definition at line 280 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_Y = 0x15 [static]
 

Definition at line 281 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

const InputServer::TInputCode InputServer::IC_Z = 0x2c [static]
 

Definition at line 282 of file inputserver.h.

Referenced by Init(), and KeyboardSDL::SetupSymMap().

TBindMap kerosin::InputServer::mBindings [private]
 

map of active bindings

Definition at line 372 of file inputserver.h.

Referenced by BindCommand(), and GetInput().

unsigned int kerosin::InputServer::mModifierState
 

Definition at line 362 of file inputserver.h.

Referenced by KeyboardSDL::EventFilter(), GetInput(), and TranslateCode().

boost::shared_ptr<ScanCodeMap> kerosin::InputServer::mScanCodeMap [private]
 

the scan code mapping

Definition at line 369 of file inputserver.h.

Referenced by AddCode(), ParseBindDescription(), Reset(), and TranslateCode().

std::string kerosin::InputServer::mScanCodeScript [private]
 

the name of the scan code script to be imported

Definition at line 366 of file inputserver.h.

Referenced by Init(), InputServer(), and SetScanCodeMapping().


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