home *** CD-ROM | disk | FTP | other *** search
/ VRML Tools for 3D Cyberspace / VRML_Tools_For_3D_Cyberspace.iso / amber / include / mouse.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-01  |  1.3 KB  |  59 lines

  1. //**********************************************************************
  2. //  DIVE Laboratories, Inc.
  3. //  Copyright(c) 1995
  4. //  All rights reserved.
  5. //  FILE:   MOUSE.HPP
  6. //
  7. //  DESCRIPTION
  8. //  This file provides the function prototypes for the mouseClass
  9. //  that is the driver for the standard window mouse.
  10. //
  11. //  Author: M. Doucet
  12. //
  13. //  Modification History:
  14. //  7/3/95    Created
  15. //
  16. //**********************************************************************
  17. #ifndef _MOUSE_HPP
  18. #define _MOUSE_HPP
  19.  
  20.  
  21. #include "sensor.hpp"
  22. #include "style.hpp"
  23.  
  24. class mouseClass : public sensorClass, public styleClass {
  25.  
  26. private:
  27.  
  28.     V3  mRotations;
  29.     V3  mDeltas;
  30.     void *hostWnd;
  31.  
  32. public:
  33.  
  34.     // Current mouse screen position +-1.0
  35.     D2 pos;
  36.  
  37.     // Button down flags
  38.     int rightBD, leftBD, middleBD;
  39.  
  40.     void style(void);
  41. #ifdef WIN32
  42.     void mouseEvent(mouseEventEnum event, I2 point, void *wnd);
  43. #endif
  44.     void mouseMove(float width, float height, float mouseX, float mouseY);
  45.     void leftButtonDown(float width, float height, float mouseX, float mouseY);
  46.     void rightButtonDown(float width, float height, float mouseX, float mouseY);
  47.     void leftButtonUp();
  48.     void rightButtonUp();
  49.  
  50.     mouseClass(void *wnd,
  51.               sensorAngleEnumType    sa = DELTA_ANGLES,
  52.                   sensorPositionEnumType sp = DELTA_POSITIONS);
  53.  
  54.     ~mouseClass();
  55.  
  56. };
  57.  
  58. #endif
  59.