home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / dm14.lzh / mouse.h < prev    next >
Text File  |  1992-09-07  |  1KB  |  35 lines

  1. /* mouse.h - defs for mouse packet */
  2.  
  3. #ifndef _MOUSE_
  4. #define _MOUSE_
  5.  
  6. typedef struct rmousin {
  7.     char     pt_valid,        /* Is packet valid */
  8.              pt_area;        /* Area of the window */
  9.     short     pt_control,        /* is mouse on the control region */
  10.              pt_sacx,        /* Scaled actual x value */
  11.             pt_sacy,        /* Scaled actual y value */
  12.              pt_acx,            /* actual x value */
  13.             pt_acy,            /* actual y value */
  14.             pt_cbsa,         /* current button state button A */
  15.             pt_cbsb,        /* current button state button B */
  16.             pt_cbsc,        /* current button state button C */
  17.             pt_wrx,            /* window working area x value */
  18.             pt_wry,            /* window working area y value */
  19.             pt_swrx,        /* Scaled working area x value */
  20.             pt_swry,        /* Scaled working area y value */
  21.             pt_rsvd[3],     /* reserved for future expansion */
  22.             pt_wacx,        /* actual x value - window offsets */
  23.             pt_wacy,        /* actual y value - window offsets */
  24.             pt_oacx,        /* actual x value - (window + overlay offsets) */
  25.             pt_oacy,        /* actual y value - (window + overlay offsets) */
  26.             pt_rsvd2[4];    /* reserved for future expansion */
  27. } MSRET;
  28.     
  29. #define WR_OFWIN    0
  30. #define WR_CNTRL    1
  31. #define WR_CNTNT    2
  32.  
  33. #endif _MOUSE_
  34.  
  35.