HIDKeys.h File Reference

Go to the source code of this file.

Enumerations

enum  HID_Key {
  HID_FIRST = 0, HID_BACKSPACE = '\b', HID_TAB = '\t', HID_ENTER = '\n',
  HID_SPACE = ' ', HID_EXCLAIM = '!', HID_DOUBLEQUOTE = '\"', HID_HASH = '#',
  HID_DOLLAR = '$', HID_PERCENT = '', HID_AMPERSAND = '&', HID_QUOTE = '\'',
  HID_LEFTPAREN = '(', HID_RIGHTPAREN = ')', HID_ASTERISK = '*', HID_PLUS = '+',
  HID_COMMA = ',', HID_MINUS = '-', HID_PERIOD = '.', HID_SLASH = '/',
  HID_0 = '0', HID_1 = '1', HID_2 = '2', HID_3 = '3',
  HID_4 = '4', HID_5 = '5', HID_6 = '6', HID_7 = '7',
  HID_8 = '8', HID_9 = '9', HID_COLON = ':', HID_SEMICOLON = ';',
  HID_LEFTANGLE = '<', HID_EQUALS = '=', HID_RIGHTANGLE = '>', HID_QUESTION = '?',
  HID_AT = '@', HID_A = 'A', HID_B = 'B', HID_C = 'C',
  HID_D = 'D', HID_E = 'E', HID_F = 'F', HID_G = 'G',
  HID_H = 'H', HID_I = 'I', HID_J = 'J', HID_K = 'K',
  HID_L = 'L', HID_M = 'M', HID_N = 'N', HID_O = 'O',
  HID_P = 'P', HID_Q = 'Q', HID_R = 'R', HID_S = 'S',
  HID_T = 'T', HID_U = 'U', HID_V = 'V', HID_W = 'W',
  HID_X = 'X', HID_Y = 'Y', HID_Z = 'Z', HID_LEFTBRACKET = '[',
  HID_BACKSLASH = '\\', HID_RIGHTBRACKET = ']', HID_CARET = '^', HID_UNDERSCORE = '_',
  HID_BACKQUOTE = '`', HID_LEFTBRACE = '{', HID_VERTICALBAR = '|', HID_RIGHTBRACE = '}',
  HID_TILDE = '~', HID_DELETE = 127, HID_INSERT, HID_END,
  HID_HOME, HID_PAGEDOWN, HID_PAGEUP, HID_UP,
  HID_DOWN, HID_LEFT, HID_RIGHT, HID_KP0,
  HID_KP1, HID_KP2, HID_KP3, HID_KP4,
  HID_KP5, HID_KP6, HID_KP7, HID_KP8,
  HID_KP9, HID_KP_PERIOD, HID_KP_SLASH, HID_KP_ASTERISK,
  HID_KP_MINUS, HID_KP_PLUS, HID_KP_ENTER, HID_KP_EQUALS,
  HID_F1, HID_F2, HID_F3, HID_F4,
  HID_F5, HID_F6, HID_F7, HID_F8,
  HID_F9, HID_F10, HID_F11, HID_F12,
  HID_F13, HID_F14, HID_F15, HID_PRINT,
  HID_NUM_LOCK, HID_CAPS_LOCK, HID_SCROLL_LOCK, HID_PAUSE,
  HID_ESCAPE, HID_LEFTSHIFT, HID_RIGHTSHIFT, HID_LEFTCONTROL,
  HID_RIGHTCONTROL, HID_LEFTALT, HID_RIGHTALT, HID_MOUSE1,
  HID_MOUSE2, HID_MOUSE3, HID_MOUSE4, HID_MOUSE5,
  HID_MOUSE6, HID_MOUSE7, HID_MOUSE8, HID_MOUSE9,
  HID_MOUSE10, HID_MOUSE11, HID_MOUSE12, HID_MOUSE13,
  HID_MOUSE14, HID_MOUSE15, HID_MOUSE16, HID_JOY1,
  HID_JOY2, HID_JOY3, HID_JOY4, HID_JOY5,
  HID_JOY6, HID_JOY7, HID_JOY8, HID_JOY9,
  HID_JOY10, HID_JOY11, HID_JOY12, HID_JOY13,
  HID_JOY14, HID_JOY15, HID_JOY16, HID_LAST
}
enum  HID_Event {
  HID_EVENT_DEPRESS = 0, HID_EVENT_RELEASE, HID_EVENT_DOUBLE, HID_EVENT_CLICK,
  HID_EVENT_LAST
}

Functions

const char * HID_GetKeyName (HID_Key key)
HID_Key HID_GetKeyFromName (Pentagram::istring &name)
HID_Key HID_translateSDLKey (SDLKey key)
HID_Key HID_translateSDLMouseButton (uint8 button)
HID_Key HID_translateSDLJoystickButton (uint8 button)
const char * HID_GetEventName (HID_Event event)
HID_Event HID_GetEventFromName (Pentagram::istring &name)


Enumeration Type Documentation

enum HID_Event

Enumerator:
HID_EVENT_DEPRESS 
HID_EVENT_RELEASE 
HID_EVENT_DOUBLE 
HID_EVENT_CLICK 
HID_EVENT_LAST 

Definition at line 215 of file HIDKeys.h.

enum HID_Key

Enumerator:
HID_FIRST 
HID_BACKSPACE 
HID_TAB 
HID_ENTER 
HID_SPACE 
HID_EXCLAIM 
HID_DOUBLEQUOTE 
HID_HASH 
HID_DOLLAR 
HID_PERCENT 
HID_AMPERSAND 
HID_QUOTE 
HID_LEFTPAREN 
HID_RIGHTPAREN 
HID_ASTERISK 
HID_PLUS 
HID_COMMA 
HID_MINUS 
HID_PERIOD 
HID_SLASH 
HID_0 
HID_1 
HID_2 
HID_3 
HID_4 
HID_5 
HID_6 
HID_7 
HID_8 
HID_9 
HID_COLON 
HID_SEMICOLON 
HID_LEFTANGLE 
HID_EQUALS 
HID_RIGHTANGLE 
HID_QUESTION 
HID_AT 
HID_A 
HID_B 
HID_C 
HID_D 
HID_E 
HID_F 
HID_G 
HID_H 
HID_I 
HID_J 
HID_K 
HID_L 
HID_M 
HID_N 
HID_O 
HID_P 
HID_Q 
HID_R 
HID_S 
HID_T 
HID_U 
HID_V 
HID_W 
HID_X 
HID_Y 
HID_Z 
HID_LEFTBRACKET 
HID_BACKSLASH 
HID_RIGHTBRACKET 
HID_CARET 
HID_UNDERSCORE 
HID_BACKQUOTE 
HID_LEFTBRACE 
HID_VERTICALBAR 
HID_RIGHTBRACE 
HID_TILDE 
HID_DELETE 
HID_INSERT 
HID_END 
HID_HOME 
HID_PAGEDOWN 
HID_PAGEUP 
HID_UP 
HID_DOWN 
HID_LEFT 
HID_RIGHT 
HID_KP0 
HID_KP1 
HID_KP2 
HID_KP3 
HID_KP4 
HID_KP5 
HID_KP6 
HID_KP7 
HID_KP8 
HID_KP9 
HID_KP_PERIOD 
HID_KP_SLASH 
HID_KP_ASTERISK 
HID_KP_MINUS 
HID_KP_PLUS 
HID_KP_ENTER 
HID_KP_EQUALS 
HID_F1 
HID_F2 
HID_F3 
HID_F4 
HID_F5 
HID_F6 
HID_F7 
HID_F8 
HID_F9 
HID_F10 
HID_F11 
HID_F12 
HID_F13 
HID_F14 
HID_F15 
HID_PRINT 
HID_NUM_LOCK 
HID_CAPS_LOCK 
HID_SCROLL_LOCK 
HID_PAUSE 
HID_ESCAPE 
HID_LEFTSHIFT 
HID_RIGHTSHIFT 
HID_LEFTCONTROL 
HID_RIGHTCONTROL 
HID_LEFTALT 
HID_RIGHTALT 
HID_MOUSE1 
HID_MOUSE2 
HID_MOUSE3 
HID_MOUSE4 
HID_MOUSE5 
HID_MOUSE6 
HID_MOUSE7 
HID_MOUSE8 
HID_MOUSE9 
HID_MOUSE10 
HID_MOUSE11 
HID_MOUSE12 
HID_MOUSE13 
HID_MOUSE14 
HID_MOUSE15 
HID_MOUSE16 
HID_JOY1 
HID_JOY2 
HID_JOY3 
HID_JOY4 
HID_JOY5 
HID_JOY6 
HID_JOY7 
HID_JOY8 
HID_JOY9 
HID_JOY10 
HID_JOY11 
HID_JOY12 
HID_JOY13 
HID_JOY14 
HID_JOY15 
HID_JOY16 
HID_LAST 

Definition at line 24 of file HIDKeys.h.


Function Documentation

HID_Event HID_GetEventFromName ( Pentagram::istring name  ) 

Definition at line 510 of file HIDKeys.cpp.

References EventName::event, eventNames, and HID_EVENT_LAST.

Referenced by HIDManager::bind().

const char* HID_GetEventName ( HID_Event  event  ) 

Definition at line 499 of file HIDKeys.cpp.

References EventName::event, eventNames, and HID_EVENT_LAST.

Referenced by HIDManager::listBindings(), and HIDManager::saveBindings().

HID_Key HID_GetKeyFromName ( Pentagram::istring name  ) 

Definition at line 300 of file HIDKeys.cpp.

References HID_LAST, KeyName::key, and keyNames.

Referenced by HIDManager::bind().

const char* HID_GetKeyName ( HID_Key  key  ) 

Definition at line 289 of file HIDKeys.cpp.

References HID_LAST, KeyName::key, and keyNames.

Referenced by HIDManager::listBindings(), and HIDManager::saveBindings().

HID_Key HID_translateSDLJoystickButton ( uint8  button  ) 

Definition at line 473 of file HIDKeys.cpp.

References HID_JOY1, HID_JOY10, HID_JOY11, HID_JOY12, HID_JOY13, HID_JOY14, HID_JOY15, HID_JOY16, HID_JOY2, HID_JOY3, HID_JOY4, HID_JOY5, HID_JOY6, HID_JOY7, HID_JOY8, HID_JOY9, and HID_LAST.

Referenced by HIDManager::handleEvent().

HID_Key HID_translateSDLKey ( SDLKey  key  ) 

Definition at line 311 of file HIDKeys.cpp.

References HID_0, HID_1, HID_2, HID_3, HID_4, HID_5, HID_6, HID_7, HID_8, HID_9, HID_A, HID_AMPERSAND, HID_ASTERISK, HID_AT, HID_B, HID_BACKQUOTE, HID_BACKSLASH, HID_BACKSPACE, HID_C, HID_CAPS_LOCK, HID_CARET, HID_COLON, HID_COMMA, HID_D, HID_DELETE, HID_DOLLAR, HID_DOUBLEQUOTE, HID_DOWN, HID_E, HID_END, HID_ENTER, HID_EQUALS, HID_ESCAPE, HID_EXCLAIM, HID_F, HID_F1, HID_F10, HID_F11, HID_F12, HID_F13, HID_F14, HID_F15, HID_F2, HID_F3, HID_F4, HID_F5, HID_F6, HID_F7, HID_F8, HID_F9, HID_G, HID_H, HID_HASH, HID_HOME, HID_I, HID_INSERT, HID_J, HID_K, HID_KP0, HID_KP1, HID_KP2, HID_KP3, HID_KP4, HID_KP5, HID_KP6, HID_KP7, HID_KP8, HID_KP9, HID_KP_ASTERISK, HID_KP_ENTER, HID_KP_EQUALS, HID_KP_MINUS, HID_KP_PERIOD, HID_KP_PLUS, HID_KP_SLASH, HID_L, HID_LAST, HID_LEFT, HID_LEFTALT, HID_LEFTANGLE, HID_LEFTBRACKET, HID_LEFTCONTROL, HID_LEFTPAREN, HID_LEFTSHIFT, HID_M, HID_MINUS, HID_N, HID_NUM_LOCK, HID_O, HID_P, HID_PAGEDOWN, HID_PAGEUP, HID_PAUSE, HID_PERIOD, HID_PLUS, HID_PRINT, HID_Q, HID_QUESTION, HID_QUOTE, HID_R, HID_RIGHT, HID_RIGHTALT, HID_RIGHTANGLE, HID_RIGHTBRACKET, HID_RIGHTCONTROL, HID_RIGHTPAREN, HID_RIGHTSHIFT, HID_S, HID_SCROLL_LOCK, HID_SEMICOLON, HID_SLASH, HID_SPACE, HID_T, HID_TAB, HID_U, HID_UNDERSCORE, HID_UP, HID_V, HID_W, HID_X, HID_Y, and HID_Z.

Referenced by HIDManager::handleEvent().

HID_Key HID_translateSDLMouseButton ( uint8  button  ) 

Definition at line 447 of file HIDKeys.cpp.

References HID_LAST, HID_MOUSE1, HID_MOUSE10, HID_MOUSE11, HID_MOUSE12, HID_MOUSE13, HID_MOUSE14, HID_MOUSE15, HID_MOUSE16, HID_MOUSE2, HID_MOUSE3, HID_MOUSE4, HID_MOUSE5, HID_MOUSE6, HID_MOUSE7, HID_MOUSE8, and HID_MOUSE9.

Referenced by HIDManager::handleEvent().


Generated on Fri Jul 27 22:28:03 2007 for pentagram by  doxygen 1.4.7