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.

27 lines
622 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* X11 mouse routines header.
  2. Copyright (c) 2001-2002 by Salvador E. Tropea (SET)
  3. Covered by the GPL license. */
  4. #if (defined(TVOS_UNIX) || defined(TVCompf_Cygwin)) && defined(HAVE_X11) && !defined(X11MOUSE_HEADER_INCLUDED)
  5. #define X11MOUSE_HEADER_INCLUDED
  6. class THWMouseX11 : public THWMouse
  7. {
  8. public:
  9. static void Init();
  10. protected:
  11. THWMouseX11() {};
  12. virtual ~THWMouseX11();
  13. static void GetEvent(MouseEventType &me);
  14. // For this driver
  15. static int getMouseEvent();
  16. static unsigned mouseButtons;
  17. static unsigned mouseX,mouseY;
  18. static unsigned buttonTranslate[8];
  19. };
  20. #endif // X11MOUSE_HEADER_INCLUDED