1: #include <X/mit-copyright.h>
2:
3: /* Copyright Massachusetts Institute of Technology 1985 */
4:
5: /* $Header: vsinput.h,v 10.6 86/02/01 15:17:30 tony Rel $ */
6: /*
7: * Event queue entries
8: */
9:
10: # ifndef _XINPUT_
11: # define _XINPUT_
12:
13: typedef struct _vs_event {
14: u_short vse_x; /* x position */
15: u_short vse_y; /* y position */
16: u_short vse_time; /* 10 millisecond units (button only) */
17: char vse_type; /* button or motion? */
18: u_char vse_key; /* the key (button only) */
19: char vse_direction; /* which direction (button only) */
20: char vse_device; /* which device (button only) */
21: } vsEvent;
22:
23: /* vse_type field */
24: #define VSE_BUTTON 0 /* button moved */
25: #define VSE_MMOTION 1 /* mouse moved */
26: #define VSE_TMOTION 2 /* tablet moved */
27:
28: /* vse_direction field */
29: #define VSE_KBTUP 0 /* up */
30: #define VSE_KBTDOWN 1 /* down */
31: #define VSE_KBTRAW 2 /* undetermined */
32:
33: /* vse_device field */
34: #define VSE_MOUSE 1 /* mouse */
35: #define VSE_DKB 2 /* main keyboard */
36: #define VSE_TABLET 3 /* graphics tablet */
37: #define VSE_AUX 4 /* auxiliary */
38: #define VSE_CONSOLE 5 /* console */
39:
40: /* The event queue */
41:
42: typedef struct _vs_eventqueue {
43: vsEvent *events; /* input event buffer */
44: int size; /* size of event buffer */
45: int head; /* index into events */
46: int tail; /* index into events */
47: } vsEventQueue;
48:
49: /* mouse cursor position */
50:
51: typedef struct _vs_cursor {
52: short x;
53: short y;
54: } vsCursor;
55:
56: /* mouse motion rectangle */
57:
58: typedef struct _vs_box {
59: short bottom;
60: short right;
61: short left;
62: short top;
63: } vsBox;
64:
65: # endif _XINPUT_
Defined struct's
Defined typedef's
vsBox
defined in line
63; used 4 times
Defined macros
VSE_KBTUP
defined in line
29; used 15 times
- in /usr/src/new/X/X/input.c line
437,
483
- in /usr/src/new/X/X/lk201.c line
55,
66
- in /usr/src/new/X/libnest/nest.c line
125,
147,
156
- in /usr/src/new/X/libsun/events.c line
112,
139,
148,
157,
225,
233,
241,
249
Usage of this include