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_

Defined struct's

_vs_box defined in line 53; never used
_vs_cursor defined in line 46; never used
_vs_event defined in line 8; never used
_vs_eventqueue defined in line 37; never used

Defined typedef's

vsBox defined in line 58; never used
vsCursor defined in line 49; never used
vsEvent defined in line 16; used 1 times
  • in line 38
vsEventQueue defined in line 42; never used

Defined macros

VSE_AUX defined in line 32; never used
VSE_BUTTON defined in line 19; never used
VSE_CONSOLE defined in line 33; never used
VSE_DKB defined in line 30; never used
VSE_KBTDOWN defined in line 25; never used
VSE_KBTRAW defined in line 26; never used
VSE_KBTUP defined in line 24; never used
VSE_MMOTION defined in line 20; never used
VSE_MOUSE defined in line 29; never used
VSE_TABLET defined in line 31; never used
VSE_TMOTION defined in line 21; never used
_XINPUT_ defined in line 6; used 1 times
  • in line 5
Last modified: 1986-02-02
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 562
Valid CSS Valid XHTML 1.0 Strict