You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.4 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* Skeleton mouse routines header.
  2. Copyright (c) 2002 by Salvador E. Tropea (SET)
  3. Covered by the GPL license. */
  4. // For more information look in event.h
  5. #ifndef SKELETONMOUSE_HEADER_INCLUDED
  6. #define SKELETONMOUSE_HEADER_INCLUDED
  7. class THWMouseSkeleton : public THWMouse
  8. {
  9. public:
  10. // Setup the pointers to point our members
  11. static void Init();
  12. protected:
  13. // Note that even contructor/destructor are protected
  14. // Usually nothing goes here and the initialization code goes in Init()
  15. THWMouseSkeleton() {};
  16. // Here you can put the code needed to restore the state of the machine
  17. // before initialization. Be very careful we the order and avoid doble
  18. // deinitializations.
  19. virtual ~THWMouseSkeleton();
  20. // Function replacements
  21. // Make the mouse cursor visible
  22. static void Show();
  23. // Make the mouse cursor invisible
  24. static void Hide();
  25. // Put the mouse in the original state
  26. static void Suspend();
  27. // Memorize current state and setup our state
  28. static void Resume();
  29. // Get a mouse event and fill the structure. If no mouse event is available
  30. // fill the structure with the same data you used last time.
  31. static void GetEvent(MouseEventType &me);
  32. // The setup of the pointers to point our members is done in Init()
  33. // Don't forget to setup buttonCount or the class will say the mouse isn't
  34. // present.
  35. // Put support routines and variables here
  36. };
  37. #endif // SKELETONMOUSE_HEADER_INCLUDED