home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / cuaclip.zip / MOUSE.CH < prev    next >
Text File  |  1993-06-01  |  2KB  |  91 lines

  1. /*
  2. Copyright(C) Delcom-Deltranik International Software Engineering 1990, 1991.
  3.  
  4. $owner: DAVEB$
  5.  
  6. $version: 1.2$ $date: March 15, 1993$ $time: 00:54:27 PM$
  7.  
  8. */
  9. static mouse_id_string := "$id: ssvcid mouse.ch 1.2 March 15, 1993 00:54:27 PM$"
  10.  
  11. /* $nokeywords$ */
  12.  
  13. /*
  14.     This is the DOUBLE click timeout.  If a second click occurs with
  15.     the timeout it will be deemed a double click
  16. */
  17. #define    MOUSE_TIMEOUT        0.5
  18.  
  19. /*
  20.     These define the offsets into the mouse event array.
  21.  
  22.     ex.     IF (aMouseEvent[MOUSE_ROW] == MAXROW())
  23.                 ...
  24.             ENDIF
  25. */
  26. #define    MOUSE_VALUE            1
  27. #define    MOUSE_ROW            2
  28. #define    MOUSE_COL            3
  29. #define    MOUSE_CLICK_TIME    4
  30. #define    MOUSE_TYPE            5
  31.  
  32. /*
  33.     These define the type of mouse click that occured.
  34.  
  35.     ex.     IF (aMouseEvent[MOUSE_VALUE] == MOUSE_SINGLE_CLICK)
  36.                 ...
  37.             ENDIF
  38. */
  39. #define    MOUSE_SINGLE_CLICK    1
  40. #define    MOUSE_DOUBLE_CLICK    2
  41.  
  42. /*
  43.     Used with IsMouse functions ONLY.
  44.  
  45.     ex.     DO WHILE (IsMouse(MOUSE_LEFT))
  46.                 ...
  47.             ENDDO
  48. */
  49. #define    MOUSE_LEFT        1
  50. #define    MOUSE_RIGHT        2
  51. #define    MOUSE_BOTH        3
  52. #define    MOUSE_MIDDLE    4
  53. #define    MOUSE_HIDDEN    5
  54.  
  55. /*
  56.     Used with SetMouse and IsMouse functions.
  57.  
  58.     ex.     IF (IsMouse(MOUSE_OFF))
  59.                 SetMouse(MOUSE_ON)
  60.             ENDIF
  61. */
  62. #define    MOUSE_OFF                6
  63. #define    MOUSE_ON                7
  64. #define    MOUSE_WAIT            8
  65. #define    MOUSE_INSTALL        9
  66. #define    MOUSE_UNINSTALL    10
  67.  
  68. /*
  69.     Used to set the type of mouse driver to use.
  70. */
  71. #define MOUSE_SMOOTH        1
  72. #define MOUSE_SMART            2
  73. #define MOUSE_STANDARD    4
  74. #define MOUSE_ANY                7
  75.  
  76. /*
  77.     Makes sure all mouse functions are included in the link.
  78. */
  79. EXTERN    ClearMouse
  80. EXTERN    InitMouse
  81. EXTERN    InMouse
  82. EXTERN    IsMouse
  83. EXTERN    MouseCol
  84. EXTERN    MouseRow
  85. EXTERN    MouseInCol
  86. EXTERN    MouseInRow
  87. EXTERN    ResetMouse
  88. EXTERN    SetMouse
  89. EXTERN    SetMousePos
  90. EXTERN    SetMouseRange
  91.