UGDK
0.5.0
|
Go to the source code of this file.
Namespaces | |
ugdk | |
ugdk::input | |
Macros | |
#define | UGDK_SCANCODE_TO_KEYCODE(X) (static_cast<int>(X) | SCANCODE_MASK) |
Enumerations | |
enum | ugdk::input::Keycode { ugdk::input::Keycode::UNKNOWN = 0, ugdk::input::Keycode::RETURN = '\r', ugdk::input::Keycode::ESCAPE = '\033', ugdk::input::Keycode::BACKSPACE = '\b', ugdk::input::Keycode::TAB = '\t', ugdk::input::Keycode::SPACE = ' ', ugdk::input::Keycode::EXCLAIM = '!', ugdk::input::Keycode::QUOTEDBL = '"', ugdk::input::Keycode::HASH = '#', ugdk::input::Keycode::PERCENT = '', ugdk::input::Keycode::DOLLAR = '$', ugdk::input::Keycode::AMPERSAND = '&', ugdk::input::Keycode::QUOTE = '\'', ugdk::input::Keycode::LEFTPAREN = '(', ugdk::input::Keycode::RIGHTPAREN = ')', ugdk::input::Keycode::ASTERISK = '*', ugdk::input::Keycode::PLUS = '+', ugdk::input::Keycode::COMMA = ',', ugdk::input::Keycode::MINUS = '-', ugdk::input::Keycode::PERIOD = '.', ugdk::input::Keycode::SLASH = '/', ugdk::input::Keycode::ALPHANUMERIC_0 = '0', ugdk::input::Keycode::ALPHANUMERIC_1 = '1', ugdk::input::Keycode::ALPHANUMERIC_2 = '2', ugdk::input::Keycode::ALPHANUMERIC_3 = '3', ugdk::input::Keycode::ALPHANUMERIC_4 = '4', ugdk::input::Keycode::ALPHANUMERIC_5 = '5', ugdk::input::Keycode::ALPHANUMERIC_6 = '6', ugdk::input::Keycode::ALPHANUMERIC_7 = '7', ugdk::input::Keycode::ALPHANUMERIC_8 = '8', ugdk::input::Keycode::ALPHANUMERIC_9 = '9', ugdk::input::Keycode::COLON = ':', ugdk::input::Keycode::SEMICOLON = ';', ugdk::input::Keycode::LESS = '<', ugdk::input::Keycode::EQUALS = '=', ugdk::input::Keycode::GREATER = '>', ugdk::input::Keycode::QUESTION = '?', ugdk::input::Keycode::AT = '@', ugdk::input::Keycode::LEFTBRACKET = '[', ugdk::input::Keycode::BACKSLASH = '\\', ugdk::input::Keycode::RIGHTBRACKET = ']', ugdk::input::Keycode::CARET = '^', ugdk::input::Keycode::UNDERSCORE = '_', ugdk::input::Keycode::BACKQUOTE = '`', ugdk::input::Keycode::a = 'a', ugdk::input::Keycode::b = 'b', ugdk::input::Keycode::c = 'c', ugdk::input::Keycode::d = 'd', ugdk::input::Keycode::e = 'e', ugdk::input::Keycode::f = 'f', ugdk::input::Keycode::g = 'g', ugdk::input::Keycode::h = 'h', ugdk::input::Keycode::i = 'i', ugdk::input::Keycode::j = 'j', ugdk::input::Keycode::k = 'k', ugdk::input::Keycode::l = 'l', ugdk::input::Keycode::m = 'm', ugdk::input::Keycode::n = 'n', ugdk::input::Keycode::o = 'o', ugdk::input::Keycode::p = 'p', ugdk::input::Keycode::q = 'q', ugdk::input::Keycode::r = 'r', ugdk::input::Keycode::s = 's', ugdk::input::Keycode::t = 't', ugdk::input::Keycode::u = 'u', ugdk::input::Keycode::v = 'v', ugdk::input::Keycode::w = 'w', ugdk::input::Keycode::x = 'x', ugdk::input::Keycode::y = 'y', ugdk::input::Keycode::z = 'z', ugdk::input::Keycode::CAPSLOCK = UGDK_SCANCODE_TO_KEYCODE(Scancode::CAPSLOCK), ugdk::input::Keycode::F1 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F1), ugdk::input::Keycode::F2 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F2), ugdk::input::Keycode::F3 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F3), ugdk::input::Keycode::F4 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F4), ugdk::input::Keycode::F5 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F5), ugdk::input::Keycode::F6 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F6), ugdk::input::Keycode::F7 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F7), ugdk::input::Keycode::F8 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F8), ugdk::input::Keycode::F9 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F9), ugdk::input::Keycode::F10 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F10), ugdk::input::Keycode::F11 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F11), ugdk::input::Keycode::F12 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F12), ugdk::input::Keycode::PRINTSCREEN = UGDK_SCANCODE_TO_KEYCODE(Scancode::PRINTSCREEN), ugdk::input::Keycode::SCROLLLOCK = UGDK_SCANCODE_TO_KEYCODE(Scancode::SCROLLLOCK), ugdk::input::Keycode::PAUSE = UGDK_SCANCODE_TO_KEYCODE(Scancode::PAUSE), ugdk::input::Keycode::INSERT = UGDK_SCANCODE_TO_KEYCODE(Scancode::INSERT), ugdk::input::Keycode::HOME = UGDK_SCANCODE_TO_KEYCODE(Scancode::HOME), ugdk::input::Keycode::PAGEUP = UGDK_SCANCODE_TO_KEYCODE(Scancode::PAGEUP), ugdk::input::Keycode::DELETE = '\177', ugdk::input::Keycode::END = UGDK_SCANCODE_TO_KEYCODE(Scancode::END), ugdk::input::Keycode::PAGEDOWN = UGDK_SCANCODE_TO_KEYCODE(Scancode::PAGEDOWN), ugdk::input::Keycode::RIGHT = UGDK_SCANCODE_TO_KEYCODE(Scancode::RIGHT), ugdk::input::Keycode::LEFT = UGDK_SCANCODE_TO_KEYCODE(Scancode::LEFT), ugdk::input::Keycode::DOWN = UGDK_SCANCODE_TO_KEYCODE(Scancode::DOWN), ugdk::input::Keycode::UP = UGDK_SCANCODE_TO_KEYCODE(Scancode::UP), ugdk::input::Keycode::NUMLOCKCLEAR = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMLOCKCLEAR), ugdk::input::Keycode::NUMPAD_DIVIDE = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_DIVIDE), ugdk::input::Keycode::NUMPAD_MULTIPLY = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_MULTIPLY), ugdk::input::Keycode::NUMPAD_MINUS = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_MINUS), ugdk::input::Keycode::NUMPAD_PLUS = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_PLUS), ugdk::input::Keycode::NUMPAD_ENTER = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_ENTER), ugdk::input::Keycode::NUMPAD_1 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_1), ugdk::input::Keycode::NUMPAD_2 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_2), ugdk::input::Keycode::NUMPAD_3 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_3), ugdk::input::Keycode::NUMPAD_4 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_4), ugdk::input::Keycode::NUMPAD_5 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_5), ugdk::input::Keycode::NUMPAD_6 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_6), ugdk::input::Keycode::NUMPAD_7 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_7), ugdk::input::Keycode::NUMPAD_8 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_8), ugdk::input::Keycode::NUMPAD_9 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_9), ugdk::input::Keycode::NUMPAD_0 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_0), ugdk::input::Keycode::NUMPAD_PERIOD = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_PERIOD), ugdk::input::Keycode::APPLICATION = UGDK_SCANCODE_TO_KEYCODE(Scancode::APPLICATION), ugdk::input::Keycode::POWER = UGDK_SCANCODE_TO_KEYCODE(Scancode::POWER), ugdk::input::Keycode::NUMPAD_EQUALS = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_EQUALS), ugdk::input::Keycode::F13 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F13), ugdk::input::Keycode::F14 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F14), ugdk::input::Keycode::F15 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F15), ugdk::input::Keycode::F16 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F16), ugdk::input::Keycode::F17 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F17), ugdk::input::Keycode::F18 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F18), ugdk::input::Keycode::F19 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F19), ugdk::input::Keycode::F20 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F20), ugdk::input::Keycode::F21 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F21), ugdk::input::Keycode::F22 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F22), ugdk::input::Keycode::F23 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F23), ugdk::input::Keycode::F24 = UGDK_SCANCODE_TO_KEYCODE(Scancode::F24), ugdk::input::Keycode::EXECUTE = UGDK_SCANCODE_TO_KEYCODE(Scancode::EXECUTE), ugdk::input::Keycode::HELP = UGDK_SCANCODE_TO_KEYCODE(Scancode::HELP), ugdk::input::Keycode::MENU = UGDK_SCANCODE_TO_KEYCODE(Scancode::MENU), ugdk::input::Keycode::SELECT = UGDK_SCANCODE_TO_KEYCODE(Scancode::SELECT), ugdk::input::Keycode::STOP = UGDK_SCANCODE_TO_KEYCODE(Scancode::STOP), ugdk::input::Keycode::AGAIN = UGDK_SCANCODE_TO_KEYCODE(Scancode::AGAIN), ugdk::input::Keycode::UNDO = UGDK_SCANCODE_TO_KEYCODE(Scancode::UNDO), ugdk::input::Keycode::CUT = UGDK_SCANCODE_TO_KEYCODE(Scancode::CUT), ugdk::input::Keycode::COPY = UGDK_SCANCODE_TO_KEYCODE(Scancode::COPY), ugdk::input::Keycode::PASTE = UGDK_SCANCODE_TO_KEYCODE(Scancode::PASTE), ugdk::input::Keycode::FIND = UGDK_SCANCODE_TO_KEYCODE(Scancode::FIND), ugdk::input::Keycode::MUTE = UGDK_SCANCODE_TO_KEYCODE(Scancode::MUTE), ugdk::input::Keycode::VOLUMEUP = UGDK_SCANCODE_TO_KEYCODE(Scancode::VOLUMEUP), ugdk::input::Keycode::VOLUMEDOWN = UGDK_SCANCODE_TO_KEYCODE(Scancode::VOLUMEDOWN), ugdk::input::Keycode::NUMPAD_COMMA = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_COMMA), ugdk::input::Keycode::NUMPAD_EQUALSAS400, ugdk::input::Keycode::ALTERASE = UGDK_SCANCODE_TO_KEYCODE(Scancode::ALTERASE), ugdk::input::Keycode::SYSREQ = UGDK_SCANCODE_TO_KEYCODE(Scancode::SYSREQ), ugdk::input::Keycode::CANCEL = UGDK_SCANCODE_TO_KEYCODE(Scancode::CANCEL), ugdk::input::Keycode::CLEAR = UGDK_SCANCODE_TO_KEYCODE(Scancode::CLEAR), ugdk::input::Keycode::PRIOR = UGDK_SCANCODE_TO_KEYCODE(Scancode::PRIOR), ugdk::input::Keycode::RETURN2 = UGDK_SCANCODE_TO_KEYCODE(Scancode::RETURN2), ugdk::input::Keycode::SEPARATOR = UGDK_SCANCODE_TO_KEYCODE(Scancode::SEPARATOR), ugdk::input::Keycode::OUT = UGDK_SCANCODE_TO_KEYCODE(Scancode::OUT), ugdk::input::Keycode::OPER = UGDK_SCANCODE_TO_KEYCODE(Scancode::OPER), ugdk::input::Keycode::CLEARAGAIN = UGDK_SCANCODE_TO_KEYCODE(Scancode::CLEARAGAIN), ugdk::input::Keycode::CRSEL = UGDK_SCANCODE_TO_KEYCODE(Scancode::CRSEL), ugdk::input::Keycode::EXSEL = UGDK_SCANCODE_TO_KEYCODE(Scancode::EXSEL), ugdk::input::Keycode::NUMPAD_00 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_00), ugdk::input::Keycode::NUMPAD_000 = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_000), ugdk::input::Keycode::THOUSANDSSEPARATOR, ugdk::input::Keycode::DECIMALSEPARATOR, ugdk::input::Keycode::CURRENCYUNIT = UGDK_SCANCODE_TO_KEYCODE(Scancode::CURRENCYUNIT), ugdk::input::Keycode::CURRENCYSUBUNIT, ugdk::input::Keycode::NUMPAD_LEFTPAREN = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_LEFTPAREN), ugdk::input::Keycode::NUMPAD_RIGHTPAREN = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_RIGHTPAREN), ugdk::input::Keycode::NUMPAD_LEFTBRACE = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_LEFTBRACE), ugdk::input::Keycode::NUMPAD_RIGHTBRACE = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_RIGHTBRACE), ugdk::input::Keycode::NUMPAD_TAB = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_TAB), ugdk::input::Keycode::NUMPAD_BACKSPACE = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_BACKSPACE), ugdk::input::Keycode::NUMPAD_A = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_A), ugdk::input::Keycode::NUMPAD_B = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_B), ugdk::input::Keycode::NUMPAD_C = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_C), ugdk::input::Keycode::NUMPAD_D = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_D), ugdk::input::Keycode::NUMPAD_E = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_E), ugdk::input::Keycode::NUMPAD_F = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_F), ugdk::input::Keycode::NUMPAD_XOR = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_XOR), ugdk::input::Keycode::NUMPAD_POWER = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_POWER), ugdk::input::Keycode::NUMPAD_PERCENT = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_PERCENT), ugdk::input::Keycode::NUMPAD_LESS = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_LESS), ugdk::input::Keycode::NUMPAD_GREATER = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_GREATER), ugdk::input::Keycode::NUMPAD_AMPERSAND = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_AMPERSAND), ugdk::input::Keycode::NUMPAD_DBLAMPERSAND, ugdk::input::Keycode::NUMPAD_VERTICALBAR, ugdk::input::Keycode::NUMPAD_DBLVERTICALBAR, ugdk::input::Keycode::NUMPAD_COLON = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_COLON), ugdk::input::Keycode::NUMPAD_HASH = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_HASH), ugdk::input::Keycode::NUMPAD_SPACE = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_SPACE), ugdk::input::Keycode::NUMPAD_AT = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_AT), ugdk::input::Keycode::NUMPAD_EXCLAM = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_EXCLAM), ugdk::input::Keycode::NUMPAD_MEMSTORE = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_MEMSTORE), ugdk::input::Keycode::NUMPAD_MEMRECALL = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_MEMRECALL), ugdk::input::Keycode::NUMPAD_MEMCLEAR = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_MEMCLEAR), ugdk::input::Keycode::NUMPAD_MEMADD = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_MEMADD), ugdk::input::Keycode::NUMPAD_MEMSUBTRACT, ugdk::input::Keycode::NUMPAD_MEMMULTIPLY, ugdk::input::Keycode::NUMPAD_MEMDIVIDE = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_MEMDIVIDE), ugdk::input::Keycode::NUMPAD_PLUSMINUS = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_PLUSMINUS), ugdk::input::Keycode::NUMPAD_CLEAR = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_CLEAR), ugdk::input::Keycode::NUMPAD_CLEARENTRY = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_CLEARENTRY), ugdk::input::Keycode::NUMPAD_BINARY = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_BINARY), ugdk::input::Keycode::NUMPAD_OCTAL = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_OCTAL), ugdk::input::Keycode::NUMPAD_DECIMAL = UGDK_SCANCODE_TO_KEYCODE(Scancode::NUMPAD_DECIMAL), ugdk::input::Keycode::NUMPAD_HEXADECIMAL, ugdk::input::Keycode::LCTRL = UGDK_SCANCODE_TO_KEYCODE(Scancode::LCTRL), ugdk::input::Keycode::LSHIFT = UGDK_SCANCODE_TO_KEYCODE(Scancode::LSHIFT), ugdk::input::Keycode::LALT = UGDK_SCANCODE_TO_KEYCODE(Scancode::LALT), ugdk::input::Keycode::LGUI = UGDK_SCANCODE_TO_KEYCODE(Scancode::LGUI), ugdk::input::Keycode::RCTRL = UGDK_SCANCODE_TO_KEYCODE(Scancode::RCTRL), ugdk::input::Keycode::RSHIFT = UGDK_SCANCODE_TO_KEYCODE(Scancode::RSHIFT), ugdk::input::Keycode::RALT = UGDK_SCANCODE_TO_KEYCODE(Scancode::RALT), ugdk::input::Keycode::RGUI = UGDK_SCANCODE_TO_KEYCODE(Scancode::RGUI), ugdk::input::Keycode::MODE = UGDK_SCANCODE_TO_KEYCODE(Scancode::MODE), ugdk::input::Keycode::AUDIONEXT = UGDK_SCANCODE_TO_KEYCODE(Scancode::AUDIONEXT), ugdk::input::Keycode::AUDIOPREV = UGDK_SCANCODE_TO_KEYCODE(Scancode::AUDIOPREV), ugdk::input::Keycode::AUDIOSTOP = UGDK_SCANCODE_TO_KEYCODE(Scancode::AUDIOSTOP), ugdk::input::Keycode::AUDIOPLAY = UGDK_SCANCODE_TO_KEYCODE(Scancode::AUDIOPLAY), ugdk::input::Keycode::AUDIOMUTE = UGDK_SCANCODE_TO_KEYCODE(Scancode::AUDIOMUTE), ugdk::input::Keycode::MEDIASELECT = UGDK_SCANCODE_TO_KEYCODE(Scancode::MEDIASELECT), ugdk::input::Keycode::WWW = UGDK_SCANCODE_TO_KEYCODE(Scancode::WWW), ugdk::input::Keycode::MAIL = UGDK_SCANCODE_TO_KEYCODE(Scancode::MAIL), ugdk::input::Keycode::CALCULATOR = UGDK_SCANCODE_TO_KEYCODE(Scancode::CALCULATOR), ugdk::input::Keycode::COMPUTER = UGDK_SCANCODE_TO_KEYCODE(Scancode::COMPUTER), ugdk::input::Keycode::AC_SEARCH = UGDK_SCANCODE_TO_KEYCODE(Scancode::AC_SEARCH), ugdk::input::Keycode::AC_HOME = UGDK_SCANCODE_TO_KEYCODE(Scancode::AC_HOME), ugdk::input::Keycode::AC_BACK = UGDK_SCANCODE_TO_KEYCODE(Scancode::AC_BACK), ugdk::input::Keycode::AC_FORWARD = UGDK_SCANCODE_TO_KEYCODE(Scancode::AC_FORWARD), ugdk::input::Keycode::AC_STOP = UGDK_SCANCODE_TO_KEYCODE(Scancode::AC_STOP), ugdk::input::Keycode::AC_REFRESH = UGDK_SCANCODE_TO_KEYCODE(Scancode::AC_REFRESH), ugdk::input::Keycode::AC_BOOKMARKS = UGDK_SCANCODE_TO_KEYCODE(Scancode::AC_BOOKMARKS), ugdk::input::Keycode::BRIGHTNESSDOWN, ugdk::input::Keycode::BRIGHTNESSUP = UGDK_SCANCODE_TO_KEYCODE(Scancode::BRIGHTNESSUP), ugdk::input::Keycode::DISPLAYSWITCH = UGDK_SCANCODE_TO_KEYCODE(Scancode::DISPLAYSWITCH), ugdk::input::Keycode::KBDILLUMTOGGLE, ugdk::input::Keycode::KBDILLUMDOWN = UGDK_SCANCODE_TO_KEYCODE(Scancode::KBDILLUMDOWN), ugdk::input::Keycode::KBDILLUMUP = UGDK_SCANCODE_TO_KEYCODE(Scancode::KBDILLUMUP), ugdk::input::Keycode::EJECT = UGDK_SCANCODE_TO_KEYCODE(Scancode::EJECT), ugdk::input::Keycode::SLEEP = UGDK_SCANCODE_TO_KEYCODE(Scancode::SLEEP) } |
The SDL virtual key representation. More... | |
enum | ugdk::input::Keymod { ugdk::input::Keymod::NONE = 0x0000, ugdk::input::Keymod::LSHIFT = 0x0001, ugdk::input::Keymod::RSHIFT = 0x0002, ugdk::input::Keymod::SHIFT = LSHIFT | RSHIFT, ugdk::input::Keymod::LCTRL = 0x0040, ugdk::input::Keymod::RCTRL = 0x0080, ugdk::input::Keymod::CTRL = LCTRL | RCTRL, ugdk::input::Keymod::LALT = 0x0100, ugdk::input::Keymod::RALT = 0x0200, ugdk::input::Keymod::ALT = LALT | RALT, ugdk::input::Keymod::LGUI = 0x0400, ugdk::input::Keymod::RGUI = 0x0800, ugdk::input::Keymod::GUI = LGUI | RGUI, ugdk::input::Keymod::NUM = 0x1000, ugdk::input::Keymod::CAPS = 0x2000, ugdk::input::Keymod::MODE = 0x4000, ugdk::input::Keymod::RESERVED = 0x8000 } |
Enumeration of valid key mods (possibly OR'd together). More... | |
Functions | |
Scancode | ugdk::input::CreateScancodeFromKeycode (const Keycode &) |
Keycode | ugdk::input::CreateKeycodeFromScancode (const Scancode &) |
bool | ugdk::input::operator& (const Keymod &left, const Keymod &right) |
#define UGDK_SCANCODE_TO_KEYCODE | ( | X | ) | (static_cast<int>(X) | SCANCODE_MASK) |