Go to the source code of this file.
Classes | |
struct | KeyName |
struct | EventName |
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) |
Variables | |
static const KeyName | keyNames [] |
static const EventName | eventNames [] |
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_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().
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().
const EventName eventNames[] [static] |
Initial value:
{ {HID_EVENT_DEPRESS, "<Depress>"}, {HID_EVENT_RELEASE, "<Release>"}, {HID_EVENT_DOUBLE, "<Double>"}, {HID_EVENT_CLICK, "<Click>"}, {HID_EVENT_LAST, ""} }
Definition at line 280 of file HIDKeys.cpp.
Referenced by HID_GetEventFromName(), and HID_GetEventName().
Definition at line 24 of file HIDKeys.cpp.
Referenced by HID_GetKeyFromName(), and HID_GetKeyName().