home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / FreeWheel / WheelMouse.h < prev   
C/C++ Source or Header  |  1999-12-29  |  964b  |  36 lines

  1.  
  2. #include <intuition/intuition.h>
  3.  
  4. enum WindowModes {OverWindow,ActiveWindow};
  5. enum ButtonModes {Ignore,Shift,ShiftClick,DepthArrange,ShiftDepth,CycleScreens};
  6.  
  7. struct WheelMouseContext
  8. {
  9.   void (*Dispose)(struct WheelMouseContext *wm);
  10.   BOOL (*Handle)(struct WheelMouseContext *wm,unsigned long signals);
  11.   int ScrollX,ScrollY;
  12.   int ButtonState;
  13.   enum WindowModes WindowMode;
  14.   enum ButtonModes MMBMode;
  15.   enum ButtonModes FourthButtonMode;
  16.   char **WindowModeNames;
  17.   char **MMBModeNames;
  18.   char **FourthButtonModeNames;
  19.   int MouseSpeed;
  20.   BOOL ClickToFront;
  21.   BOOL ClickToBack;
  22.   struct Task *MainTask;
  23.   unsigned long Signals;
  24.   int SigBit;
  25.   struct MsgPort *ReplyPort;
  26.   struct Window *Window;
  27.   struct Gadget *Gadget;
  28.   struct ExtIntuiMessage Msg1;
  29.   unsigned long pad11,pad12,pad13,pad14; /* struct might be extended further! */
  30.   struct ExtIntuiMessage Msg2;
  31.   unsigned long pad21,pad22,pad23,pad24;
  32. };
  33.  
  34. struct WheelMouseContext *WheelMouse_Create();
  35.  
  36.