Annotation of 43BSD/contrib/X/sys/vaxuba/qevent.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Event queue entries
                      3:  */
                      4: 
                      5: # ifndef _XINPUT_
                      6: # define _XINPUT_
                      7: 
                      8: typedef struct  _vs_event {
                      9:         u_short vse_x;          /* x position */
                     10:         u_short vse_y;          /* y position */
                     11:         u_short vse_time;       /* 10 millisecond units (button only) */
                     12:         char    vse_type;       /* button or motion? */
                     13:         u_char  vse_key;        /* the key (button only) */
                     14:         char    vse_direction;  /* which direction (button only) */
                     15:         char    vse_device;     /* which device (button only) */
                     16: } vsEvent;
                     17: 
                     18: /* vse_type field */
                     19: #define VSE_BUTTON      0               /* button moved */
                     20: #define VSE_MMOTION     1               /* mouse moved */
                     21: #define VSE_TMOTION     2               /* tablet moved */
                     22: 
                     23: /* vse_direction field */
                     24: #define VSE_KBTUP       0               /* up */
                     25: #define VSE_KBTDOWN     1               /* down */
                     26: #define VSE_KBTRAW     2               /* undetermined */
                     27: 
                     28: /* vse_device field */
                     29: #define VSE_MOUSE       1               /* mouse */
                     30: #define VSE_DKB         2               /* main keyboard */
                     31: #define VSE_TABLET      3               /* graphics tablet */
                     32: #define VSE_AUX         4               /* auxiliary */
                     33: #define VSE_CONSOLE     5               /* console */
                     34: 
                     35: /* The event queue */
                     36: 
                     37: typedef struct _vs_eventqueue {
                     38:        vsEvent *events;        /* input event buffer */
                     39:        int size;               /* size of event buffer */
                     40:        int head;               /* index into events */
                     41:        int tail;               /* index into events */
                     42: } vsEventQueue;
                     43: 
                     44: /* mouse cursor position */
                     45: 
                     46: typedef struct _vs_cursor {
                     47:         short x;
                     48:         short y;
                     49: } vsCursor;
                     50: 
                     51: /* mouse motion rectangle */
                     52: 
                     53: typedef struct _vs_box {
                     54:         short bottom;
                     55:         short right;
                     56:         short left;
                     57:         short top;
                     58: } vsBox;
                     59: 
                     60: # endif _XINPUT_

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.