5 #include <conio.h> // just for wait
6 #include <time.h> // just for wait
7 #include "src\lib\types.h"
9 /* Control codes for all keys on the keyboard */
48 #define KEY_DASH (0x0C) // -_
49 #define KEY_EQUAL (0x0D) // =+
50 #define KEY_LBRACKET (0x1A) // [{
51 #define KEY_RBRACKET (0x1B) // ]}
52 #define KEY_SEMICOLON (0x27) // ;:
53 #define KEY_RQUOTE (0x28) // '"
54 #define KEY_LQUOTE (0x29) // `~
55 #define KEY_PERIOD (0x33) // .>
56 #define KEY_COMMA (0x34) // ,<
57 #define KEY_SLASH (0x35) // /?
58 #define KEY_BACKSLASH (0x2B) // \|
68 #define KEY_F10 (0x44)
69 #define KEY_ESC (0x01)
70 #define KEY_BACKSPACE (0x0E)
71 #define KEY_TAB (0x0F)
72 #define KEY_ENTER (0x1C)
73 #define KEY_CONTROL (0x1D)
74 #define KEY_LSHIFT (0x2A)
75 #define KEY_RSHIFT (0x36)
76 #define KEY_PRTSC (0x37)
77 #define KEY_ALT (0x38)
78 #define KEY_SPACE (0x39)
79 #define KEY_CAPSLOCK (0x3A)
80 #define KEY_NUMLOCK (0x45)
81 #define KEY_SCROLLLOCK (0x46)
82 #define KEY_HOME (0x47)
84 #define KEY_PGUP (0x49)
85 #define KEY_MINUS (0x4A)
86 #define KEY_LEFT (0x4B)
87 #define KEY_CENTER (0x4C)
88 #define KEY_RIGHT (0x4D)
89 #define KEY_PLUS (0x4E)
90 #define KEY_END (0x4F)
91 #define KEY_DOWN (0x50)
92 #define KEY_PGDOWN (0x51)
93 #define KEY_INS (0x52)
94 #define KEY_DEL (0x53)
96 #define KEY_LWIN (0x73)
97 #define KEY_RWIN (0x74)
98 #define KEY_MENU (0x75)
101 //typedef unsigned char byte;
102 //typedef unsigned int word;
103 //typedef unsigned short syte;
105 void wait(clock_t wait);
107 /* THIS FUNCTION CONVERTS A POINTER TO AN INTEL LONG */
\r
108 //int long ptr2long(char *p);
110 #endif/*_LIBHEAD_H_*/