jedi-academy/code/client/keycodes.h
2013-04-23 15:21:39 +10:00

347 lines
4.1 KiB
C

#ifndef __KEYCODES_H__
#define __KEYCODES_H__
// these are the key numbers that should be passed to KeyEvent
typedef enum
{
A_NULL = 0,
A_SHIFT,
A_CTRL,
A_ALT,
A_CAPSLOCK,
A_NUMLOCK,
A_SCROLLLOCK,
A_PAUSE,
A_BACKSPACE,
A_TAB,
A_ENTER,
A_KP_PLUS,
A_KP_MINUS,
A_KP_ENTER,
A_KP_PERIOD,
A_PRINTSCREEN,
A_KP_0,
A_KP_1,
A_KP_2,
A_KP_3,
A_KP_4,
A_KP_5,
A_KP_6,
A_KP_7,
A_KP_8,
A_KP_9,
A_CONSOLE,
A_ESCAPE,
A_F1,
A_F2,
A_F3,
A_F4,
A_SPACE,
A_PLING,
A_DOUBLE_QUOTE,
A_HASH,
A_STRING,
A_PERCENT,
A_AND,
A_SINGLE_QUOTE,
A_OPEN_BRACKET,
A_CLOSE_BRACKET,
A_STAR,
A_PLUS,
A_COMMA,
A_MINUS,
A_PERIOD,
A_FORWARD_SLASH,
A_0,
A_1,
A_2,
A_3,
A_4,
A_5,
A_6,
A_7,
A_8,
A_9,
A_COLON,
A_SEMICOLON,
A_LESSTHAN,
A_EQUALS,
A_GREATERTHAN,
A_QUESTION,
A_AT,
A_CAP_A,
A_CAP_B,
A_CAP_C,
A_CAP_D,
A_CAP_E,
A_CAP_F,
A_CAP_G,
A_CAP_H,
A_CAP_I,
A_CAP_J,
A_CAP_K,
A_CAP_L,
A_CAP_M,
A_CAP_N,
A_CAP_O,
A_CAP_P,
A_CAP_Q,
A_CAP_R,
A_CAP_S,
A_CAP_T,
A_CAP_U,
A_CAP_V,
A_CAP_W,
A_CAP_X,
A_CAP_Y,
A_CAP_Z,
A_OPEN_SQUARE,
A_BACKSLASH,
A_CLOSE_SQUARE,
A_CARET,
A_UNDERSCORE,
A_LEFT_SINGLE_QUOTE,
A_LOW_A,
A_LOW_B,
A_LOW_C,
A_LOW_D,
A_L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_JOY21,
A_JOY22,
A_JOY23,
A_JOY24,
A_JOY25,
A_JOY26,
A_JOY27,
A_JOY28,
A_JOY29,
A_JOY30,
A_JOY31,
A_AUX0,
A_AUX1,
A_AUX2,
A_AUX3,
A_AUX4,
A_AUX5,
A_AUX6,
A_AUX7,
A_AUX8,
A_AUX9,
A_AUX10,
A_AUX11,
A_AUX12,
A_AUX13,
A_AUX14,
A_AUX15,
A_AUX16,
A_AUX17,
A_AUX18,
A_AUX19,
A_AUX20,
A_AUX21,
A_AUX22,
A_AUX23,
A_AUX24,
A_AUX25,
A_AUX26,
A_AUX27,
A_AUX28,
A_AUX29,
A_AUX30,
A_AUX31,
MAX_KEYS
} fakeAscii_t;
// The menu code needs to get both key and char events, but
// to avoid duplicating the paths, the char events are just
// distinguished by or'ing in K_CHAR_FLAG (ugly)
#define K_CHAR_FLAG 1024
#endif