/usr/include/tuxcap/KeyCodes.h is in libtuxcap-dev 1.4.0.dfsg2-2.3+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | #ifndef __KEYCODES_INCLUDED__
#define __KEYCODES_INCLUDED__
#include "Common.h"
#include "SDL_keysym.h"
#define KEYCODE_RIGHT SDLK_RIGHT
#define KEYCODE_LEFT SDLK_LEFT
#define KEYCODE_RETURN SDLK_RETURN
#define KEYCODE_SPACE SDLK_SPACE
#define KEYCODE_BACK SDLK_BACKSPACE
#define KEYCODE_TAB SDLK_TAB
#define KEYCODE_ESCAPE SDLK_ESCAPE
#define KEYCODE_RSHIFT SDLK_RSHIFT
#define KEYCODE_LSHIFT SDLK_LSHIFT
#define KEYCODE_UP SDLK_UP
#define KEYCODE_DOWN SDLK_DOWN
namespace Sexy
{
#if 0
typedef enum KeyCode
{
KEYCODE_UNKNOWN = SDLK_UNKNOWN,
KEYCODE_RIGHT = SDLK_RIGHT,
KEYCODE_LEFT = SDLK_LEFT,
KEYCODE_RETURN = SDLK_RETURN,
KEYCODE_ESCAPE = SDLK_ESCAPE,
KEYCODE_LBUTTON = 0x01,
KEYCODE_RBUTTON = 0x02,
KEYCODE_CANCEL = 0x03,
KEYCODE_MBUTTON = 0x04,
KEYCODE_BACK = 0x08,
KEYCODE_TAB = 0x09,
KEYCODE_CLEAR = 0x0C,
KEYCODE_SHIFT = 0x10,
KEYCODE_CONTROL = 0x11,
KEYCODE_MENU = 0x12,
KEYCODE_PAUSE = 0x13,
KEYCODE_CAPITAL = 0x14,
KEYCODE_KANA = 0x15,
KEYCODE_HANGEUL = 0x15,
KEYCODE_HANGUL = 0x15,
KEYCODE_JUNJA = 0x17,
KEYCODE_FINAL = 0x18,
KEYCODE_HANJA = 0x19,
KEYCODE_KANJI = 0x19,
KEYCODE_CONVERT = 0x1C,
KEYCODE_NONCONVERT = 0x1D,
KEYCODE_ACCEPT = 0x1E,
KEYCODE_MODECHANGE = 0x1F,
KEYCODE_SPACE = 0x20,
KEYCODE_PRIOR = 0x21,
KEYCODE_NEXT = 0x22,
KEYCODE_END = 0x23,
KEYCODE_HOME = 0x24,
KEYCODE_UP = 0x26,
KEYCODE_DOWN = 0x28,
KEYCODE_SELECT = 0x29,
KEYCODE_PRINT = 0x2A,
KEYCODE_EXECUTE = 0x2B,
KEYCODE_SNAPSHOT = 0x2C,
KEYCODE_INSERT = 0x2D,
KEYCODE_DELETE = 0x2E,
KEYCODE_HELP = 0x2F,
KEYCODE_ASCIIBEGIN = 0x30,
KEYCODE_ASCIIEND = 0x5A,
KEYCODE_LWIN = 0x5B,
KEYCODE_RWIN = 0x5C,
KEYCODE_APPS = 0x5D,
KEYCODE_NUMPAD0 = 0x60,
KEYCODE_NUMPAD1 = 0x61,
KEYCODE_NUMPAD2 = 0x62,
KEYCODE_NUMPAD3 = 0x63,
KEYCODE_NUMPAD4 = 0x64,
KEYCODE_NUMPAD5 = 0x65,
KEYCODE_NUMPAD6 = 0x66,
KEYCODE_NUMPAD7 = 0x67,
KEYCODE_NUMPAD8 = 0x68,
KEYCODE_NUMPAD9 = 0x69,
KEYCODE_MULTIPLY = 0x6A,
KEYCODE_ADD = 0x6B,
KEYCODE_SEPARATOR = 0x6C,
KEYCODE_SUBTRACT = 0x6D,
KEYCODE_DECIMAL = 0x6E,
KEYCODE_DIVIDE = 0x6F,
KEYCODE_F1 = 0x70,
KEYCODE_F2 = 0x71,
KEYCODE_F3 = 0x72,
KEYCODE_F4 = 0x73,
KEYCODE_F5 = 0x74,
KEYCODE_F6 = 0x75,
KEYCODE_F7 = 0x76,
KEYCODE_F8 = 0x77,
KEYCODE_F9 = 0x78,
KEYCODE_F10 = 0x79,
KEYCODE_F11 = 0x7A,
KEYCODE_F12 = 0x7B,
KEYCODE_F13 = 0x7C,
KEYCODE_F14 = 0x7D,
KEYCODE_F15 = 0x7E,
KEYCODE_F16 = 0x7F,
KEYCODE_F17 = 0x80,
KEYCODE_F18 = 0x81,
KEYCODE_F19 = 0x82,
KEYCODE_F20 = 0x83,
KEYCODE_F21 = 0x84,
KEYCODE_F22 = 0x85,
KEYCODE_F23 = 0x86,
KEYCODE_F24 = 0x87,
KEYCODE_NUMLOCK = 0x90,
KEYCODE_SCROLL = 0x91,
KEYCODE_ASCIIBEGIN2 = 0xA1, //ASCII + 0x80
KEYCODE_ASCIIEND2 = 0xE0
};
#endif
KeyCode GetKeyCodeFromName(const std::string& theKeyName);
const std::string GetKeyNameFromCode(const KeyCode& theKeyCode);
}
#endif //__KEYCODES_INCLUDED__
|