home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / add-on / include / sys / mouse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  1.5 KB  |  44 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. #ident    "@(#)libetitam:sys/mouse.h    1.1"
  12. #ifndef _MOUSE
  13. #define _MOUSE
  14.  
  15. /* Keyboard/Mouse Codes                        */
  16. #define MSENABLE    0xD0    /* enable mouse            */
  17. #define MSDISABLE    0xD1    /* disable mouse        */
  18. #define BEGMOUSE    0xCE    /* mouse data follows        */
  19. #define BEGEMOUSE    0xCF    /* mouse data lost        */
  20. #define BEGKBD        0xDF    /* kbd data follows        */
  21.  
  22. /* Bits in the mouse byte #1                    */
  23. #define MBUTR    0x01            /* right button down    */
  24. #define MBUTM    0x02            /* middle button down    */
  25. #define MBUTL    0x04            /* left button down    */
  26. #define MSY    0x08            /* sign of Y        */
  27. #define MSX    0x10            /* sign of X        */
  28. #define MBUTALL    (MBUTL|MBUTM|MBUTR)    /* all the buttons    */
  29.  
  30. /* Default scaling formulae                    */
  31. #define MDPI    200            /* mouse dots/inch    */
  32. #define MVI    4            /* mouse vertical trav    */
  33. #define MHI    4            /* horizontal trav    */
  34. #define MXSCALE    ((MHI*MDPI)/VIDWIDTH)    /* x scaling        */
  35. #define MYSCALE    ((MVI*MDPI)/VIDHEIGHT)    /* y scaling        */
  36.  
  37. /* Communication between interrupt and wproc level        */
  38. struct msinfo {
  39.     long    physmx;
  40.     long    physmy;
  41.     char    mb;
  42. };
  43. #endif _MOUSE
  44.