home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pmos2002.zip / DEF / MOUSE0.DEF < prev    next >
Text File  |  1996-10-10  |  1KB  |  30 lines

  1. DEFINITION MODULE Mouse0;
  2.  
  3.         (********************************************************)
  4.         (*                                                      *)
  5.         (*      Common definitions for the mouse drivers        *)
  6.         (*                                                      *)
  7.         (*  Programmer:         P. Moylan                       *)
  8.         (*  Last edited:        10 October 1996                 *)
  9.         (*  Status:             OK                              *)
  10.         (*                                                      *)
  11.         (********************************************************)
  12.  
  13. TYPE
  14.     Buttons = (LeftButton, RightButton, MiddleButton);
  15.  
  16.     ButtonSet = SET OF Buttons;
  17.  
  18.     Events =  (Motion, LeftDown, LeftUp, RightDown, RightUp, MiddleDown,
  19.               MiddleUp);
  20.  
  21.     EventSet = SET OF Events;
  22.  
  23.     EventHandler = PROCEDURE (EventSet,         (* condition mask *)
  24.                                 ButtonSet,      (* Button state *)
  25.                                 CARDINAL,       (* horizontal cursor position *)
  26.                                 CARDINAL);      (* vertical cursor position *)
  27.  
  28. END Mouse0.
  29.  
  30.