tabs/kernel/drivers/keyboard/keycodes.c

42 lines
833 B
C
Raw Normal View History

2020-01-09 12:06:45 +01:00
#ifndef DRIVERS_KEYBOARD_KEYCODES_C
#define DRIVERS_KEYBOARD_KEYCODES_C
typedef enum keycode_enum {
KEYCODE_A = 'A',
KEYCODE_B = 'B',
KEYCODE_C = 'C',
KEYCODE_D = 'D',
KEYCODE_E = 'E',
KEYCODE_F = 'F',
KEYCODE_G = 'G',
KEYCODE_H = 'H',
KEYCODE_I = 'I',
KEYCODE_J = 'J',
KEYCODE_K = 'K',
KEYCODE_L = 'L',
KEYCODE_M = 'M',
KEYCODE_N = 'N',
KEYCODE_O = 'O',
KEYCODE_P = 'P',
KEYCODE_Q = 'Q',
KEYCODE_R = 'R',
KEYCODE_S = 'S',
KEYCODE_T = 'T',
KEYCODE_U = 'U',
KEYCODE_V = 'V',
KEYCODE_W = 'W',
KEYCODE_X = 'X',
KEYCODE_Y = 'Y',
KEYCODE_Z = 'Z',
KEYCODE_SPACE = ' ',
KEYCODE_SHIFT_UP,
KEYCODE_SHIFT_DOWN,
KEYCODE_CAPS_UP,
KEYCODE_CAPS_DOWN,
KEYCODE_UNKNOWN
} keycode;
#endif //DRIVERS_KEYBOARD_KEYCODES_C