-- OPENTOMB CONTROL CONSTANTS LIST
-- by Lwmte, Aug 2013

--------------------------------------------------------------------------------
-- Defines key and action names used with key bindings.
--------------------------------------------------------------------------------

KEY_RETURN = 40;
KEY_ESCAPE = 41;
KEY_BACKSPACE = 42;
KEY_TAB = 43;
KEY_SPACE = 44;
KEY_MINUS = 45;
KEY_EQUALS = 46;
KEY_LEFTBRACKET = 47;
KEY_RIGHTBRACKET = 48;
KEY_BACKSLASH = 49;
KEY_NONUSHASH = 50;
KEY_SEMICOLON = 51;
KEY_APOSTROPHE = 52;
KEY_GRAVE = 53;
KEY_COMMA = 54;
KEY_PERIOD = 55;
KEY_SLASH = 56;
KEY_CAPSLOCK = 57;

KEY_0 = 39;
KEY_1 = 30;
KEY_2 = 31;
KEY_3 = 32;
KEY_4 = 33;
KEY_5 = 34;
KEY_6 = 35;
KEY_7 = 36;
KEY_8 = 37;
KEY_9 = 38;

KEY_BACKQUOTE = 53;
KEY_A = 4;
KEY_B = 5;
KEY_C = 6;
KEY_D = 7;
KEY_E = 8;
KEY_F = 9;
KEY_G = 10;
KEY_H = 11;
KEY_I = 12;
KEY_J = 13;
KEY_K = 14;
KEY_L = 15;
KEY_M = 16;
KEY_N = 17;
KEY_O = 18;
KEY_P = 19;
KEY_Q = 20;
KEY_R = 21;
KEY_S = 22;
KEY_T = 23;
KEY_U = 24;
KEY_V = 25;
KEY_W = 26;
KEY_X = 27;
KEY_Y = 28;
KEY_Z = 29;
KEY_F1 = 58;
KEY_F2 = 59;
KEY_F3 = 60;
KEY_F4 = 61;
KEY_F5 = 62;
KEY_F6 = 63;
KEY_F7 = 64;
KEY_F8 = 65;
KEY_F9 = 66;
KEY_F10 = 67;
KEY_F11 = 68;
KEY_F12 = 69;
KEY_PRINTSCREEN = 70;
KEY_SCROLLLOCK = 71;
KEY_PAUSE = 72;
KEY_INSERT = 73;
KEY_HOME = 74;
KEY_PAGEUP = 75;
KEY_DELETE = 76;
KEY_END = 77;
KEY_PAGEDOWN = 78;
KEY_RIGHT = 79;
KEY_LEFT = 80;
KEY_DOWN = 81;
KEY_UP = 82;

KEY_NUMLOCKCLEAR = 83;

KEY_KP_DIVIDE = 84;
KEY_KP_MULTIPLY = 85;
KEY_KP_MINUS = 86;
KEY_KP_PLUS = 87;
KEY_KP_ENTER = 88;
KEY_KP_1 = 89;
KEY_KP_2 = 90;
KEY_KP_3 = 91;
KEY_KP_4 = 92;
KEY_KP_5 = 93;
KEY_KP_6 = 94;
KEY_KP_7 = 95;
KEY_KP_8 = 96;
KEY_KP_9 = 97;
KEY_KP_0 = 98;
KEY_KP_PERIOD = 99;

KEY_APPLICATION = 101;
KEY_POWER = 102;
KEY_KP_EQUALS = 103;
KEY_F13 = 104;
KEY_F14 = 105;
KEY_F15 = 106;
KEY_F16 = 107;
KEY_F17 = 108;
KEY_F18 = 109;
KEY_F19 = 110;
KEY_F20 = 111;
KEY_F21 = 112;
KEY_F22 = 113;
KEY_F23 = 114;
KEY_F24 = 115;
KEY_EXECUTE = 116;
KEY_HELP = 117;
KEY_MENU = 118;
KEY_SELECT = 119;
KEY_STOP = 120;
KEY_AGAIN = 121;
KEY_UNDO = 122;
KEY_CUT = 123;
KEY_COPY = 124;
KEY_PASTE = 125;
KEY_FIND = 126;
KEY_MUTE = 127;
KEY_VOLUMEUP = 128;
KEY_VOLUMEDOWN = 129;
KEY_KP_COMMA = 133;
KEY_KP_EQUALSAS400 = 134;

KEY_ALTERASE = 153;
KEY_SYSREQ = 154;
KEY_CANCEL = 155;
KEY_CLEAR = 156;
KEY_PRIOR = 157;
KEY_RETURN2 = 158;
KEY_SEPARATOR = 159;
KEY_OUT = 160;
KEY_OPER = 161;
KEY_CLEARAGAIN = 162;
KEY_CRSEL = 163;
KEY_EXSEL = 164;

KEY_KP_00 = 176;
KEY_KP_000 = 177;
KEY_THOUSANDSSEPARATOR = 178;
KEY_DECIMALSEPARATOR = 179;
KEY_CURRENCYUNIT = 180;
KEY_CURRENCYSUBUNIT = 181;
KEY_KP_LEFTPAREN = 182;
KEY_KP_RIGHTPAREN = 183;
KEY_KP_LEFTBRACE = 184;
KEY_KP_RIGHTBRACE = 185;
KEY_KP_TAB = 186;
KEY_KP_BACKSPACE = 187;
KEY_KP_A = 188;
KEY_KP_B = 189;
KEY_KP_C = 190;
KEY_KP_D = 191;
KEY_KP_E = 192;
KEY_KP_F = 193;
KEY_KP_XOR = 194;
KEY_KP_POWER = 195;
KEY_KP_PERCENT = 196;
KEY_KP_LESS = 197;
KEY_KP_GREATER = 198;
KEY_KP_AMPERSAND = 199;
KEY_KP_DBLAMPERSAND = 200;
KEY_KP_VERTICALBAR = 201;
KEY_KP_DBLVERTICALBAR = 202;
KEY_KP_COLON = 203;
KEY_KP_HASH = 204;
KEY_KP_SPACE = 205;
KEY_KP_AT = 206;
KEY_KP_EXCLAM = 207;
KEY_KP_MEMSTORE = 208;
KEY_KP_MEMRECALL = 209;
KEY_KP_MEMCLEAR = 210;
KEY_KP_MEMADD = 211;
KEY_KP_MEMSUBTRACT = 212;
KEY_KP_MEMMULTIPLY = 213;
KEY_KP_MEMDIVIDE = 214;
KEY_KP_PLUSMINUS = 215;
KEY_KP_CLEAR = 216;
KEY_KP_CLEARENTRY = 217;
KEY_KP_BINARY = 218;
KEY_KP_OCTAL = 219;
KEY_KP_DECIMAL = 220;
KEY_KP_HEXADECIMAL = 221;

KEY_LCTRL = 224;
KEY_LSHIFT = 225;
KEY_LALT = 226;
KEY_LGUI = 227;
KEY_RCTRL = 228;
KEY_RSHIFT = 229;
KEY_RALT = 230;
KEY_RGUI = 231;
KEY_MODE = 257;

KEY_AUDIONEXT = 258;
KEY_AUDIOPREV = 259;
KEY_AUDIOSTOP = 260;
KEY_AUDIOPLAY = 261;
KEY_AUDIOMUTE = 262;
KEY_MEDIASELECT = 263;
KEY_WWW = 264;
KEY_MAIL = 265;
KEY_CALCULATOR = 266;
KEY_COMPUTER = 267;
KEY_AC_SEARCH = 268;
KEY_AC_HOME = 269;
KEY_AC_BACK = 270;
KEY_AC_FORWARD = 271;
KEY_AC_STOP = 272;
KEY_AC_REFRESH = 273;
KEY_AC_BOOKMARKS = 274;
KEY_BRIGHTNESSDOWN = 275;
KEY_BRIGHTNESSUP = 276;
KEY_DISPLAYSWITCH = 277;
KEY_KBDILLUMTOGGLE = 278;
KEY_KBDILLUMDOWN = 279;
KEY_KBDILLUMUP = 280;
KEY_EJECT = 281;
KEY_SLEEP = 282;

JOY_1 = 1000;
JOY_2 = 1001;
JOY_3 = 1002;
JOY_4 = 1003;
JOY_5 = 1004;
JOY_6 = 1005;
JOY_7 = 1006;
JOY_8 = 1007;
JOY_9 = 1008;
JOY_10 = 1009;
JOY_11 = 1010;
JOY_12 = 1011;
JOY_13 = 1012;
JOY_14 = 1013;
JOY_15 = 1014;
JOY_16 = 1015;
JOY_17 = 1016;
JOY_18 = 1017;
JOY_19 = 1018;
JOY_20 = 1019;
JOY_21 = 1020;
JOY_22 = 1021;
JOY_23 = 1022;
JOY_24 = 1023;
JOY_25 = 1024;
JOY_26 = 1025;
JOY_27 = 1026;
JOY_28 = 1027;
JOY_29 = 1028;
JOY_30 = 1029;
JOY_31 = 1030;
JOY_32 = 1031;
JOY_POVUP = 1101;
JOY_POVDOWN = 1104;
JOY_POVLEFT = 1108;
JOY_POVRIGHT = 1102;

JOY_TRIGGERLEFT = 1204;        -- Only for XBOX360-like controllers - analog triggers.
JOY_TRIGGERRIGHT = 1205;

--ACT_UP,                     // 0
--ACT_DOWN,                   // 1
--ACT_LEFT,                   // 2
--ACT_RIGHT,                  // 3

--ACT_ACTION,                 // 4
--ACT_JUMP,                   // 5
--ACT_ROLL,                   // 6
--ACT_DRAWWEAPON,             // 7
--ACT_LOOK,                   // 8
--ACT_WALK,                   // 9
--ACT_SPRINT,                 // 10
--ACT_CROUCH,                 // 11
--ACT_STEPLEFT,               // 12
--ACT_STEPRIGHT,              // 13

--ACT_LOOKUP,                 // 14
--ACT_LOOKDOWN,               // 15
--ACT_LOOKLEFT,               // 16
--ACT_LOOKRIGHT,              // 17

--ACT_NEXTWEAPON,             // 18
--ACT_PREVWEAPON,             // 19

--ACT_FLARE,                  // 20
--ACT_BIGMEDI,                // 21
--ACT_SMALLMEDI,              // 22
--ACT_WEAPON1,                // 23
--ACT_WEAPON2,                // 24
--ACT_WEAPON3,                // 25
--ACT_WEAPON4,                // 26
--ACT_WEAPON5,                // 27
--ACT_WEAPON6,                // 28
--ACT_WEAPON7,                // 29
--ACT_WEAPON8,                // 30
--ACT_WEAPON9,                // 31
--ACT_WEAPON10,               // 32
--ACT_BINOCULARS,             // 33
--ACT_PLS,                    // 34 Not in original, reserved for future

--ACT_PAUSE,                  // 35
--ACT_INVENTORY,              // 36
--ACT_DIARY,                  // 37 Not in original, reserved for future
--ACT_MAP,                    // 38 Not in original, reserved for future
--ACT_LOADGAME,               // 39
--ACT_SAVEGAME,               // 40

--ACT_CONSOLE,                // 41
--ACT_SCREENSHOT,             // 42
