4 * Definitions for input device stuff - buttons, keys, etc.
36 #define K_NUMLOCK 0x1f2
37 #define K_SCROLL 0x1f3
70 #define K_NUMPLUS 0x14a
71 #define K_NUMMINUS 0x14b
72 #define K_NUMMUL 0x14c
73 #define K_NUMDIV 0x14d
74 #define K_NUMDOT 0x14e
75 #define K_NUMENTER 0x14f
77 #define K_MOUSE0 0x1a0
78 #define K_MOUSE1 0x1a1
79 #define K_MOUSE2 0x1a2
80 #define K_MOUSE3 0x1a3
81 #define K_MOUSE4 0x1a4
100 #define K_JOYUP 0x1ca
101 #define K_JOYDOWN 0x1cb
102 #define K_JOYRIGHT 0x1cc
103 #define K_JOYLEFT 0x1cd
105 #define MAX_KEYS 0x200
107 typedef struct keytable_s
113 extern keytable_t keytable
[];
114 extern char keystates
[MAX_KEYS
];
115 extern int nkeysdown
;
118 int k_keycode(char *name
);
119 char *k_keyname(int code
);
123 typedef struct event_s
137 int ev_postevent(event_t
*ev
);
138 int ev_getevent(event_t
*ev
);