4 * Definitions for input device stuff - buttons, keys, etc.
39 #define K_NUMLOCK 0x1f2
40 #define K_SCROLL 0x1f3
73 #define K_NUMPLUS 0x14a
74 #define K_NUMMINUS 0x14b
75 #define K_NUMMUL 0x14c
76 #define K_NUMDIV 0x14d
77 #define K_NUMDOT 0x14e
78 #define K_NUMENTER 0x14f
80 #define K_MOUSE0 0x1a0
81 #define K_MOUSE1 0x1a1
82 #define K_MOUSE2 0x1a2
83 #define K_MOUSE3 0x1a3
84 #define K_MOUSE4 0x1a4
100 #define K_JOY14 0x1be
101 #define K_JOY15 0x1bf
103 #define K_JOYUP 0x1ca
104 #define K_JOYDOWN 0x1cb
105 #define K_JOYRIGHT 0x1cc
106 #define K_JOYLEFT 0x1cd
108 #define MAX_KEYS 0x200
110 typedef struct keytable_s
116 extern keytable_t keytable
[];
117 extern char keystates
[MAX_KEYS
];
118 extern int nkeysdown
;
121 int k_keycode(char *name
);
122 char *k_keyname(int code
);
126 typedef struct event_s
140 int ev_postevent(event_t
*ev
);
141 int ev_getevent(event_t
*ev
);