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

_vs_box defined in line 58; never used
_vs_cursor defined in line 51; never used
_vs_event defined in line 13; never used
_vs_eventqueue defined in line 42; never used

Defined typedef's

Defined macros

VSE_AUX defined in line 37; never used
VSE_BUTTON defined in line 24; used 5 times
VSE_CONSOLE defined in line 38; never used
VSE_KBTRAW defined in line 31; used 1 times
VSE_MMOTION defined in line 25; used 2 times
VSE_MOUSE defined in line 34; used 7 times
VSE_TABLET defined in line 36; never used
VSE_TMOTION defined in line 26; never used
_XINPUT_ defined in line 11; used 1 times
  • in line 10

Usage of this include

Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1241
Valid CSS Valid XHTML 1.0 Strict