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.

71 lines
1.3 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Turbo Vision - Version 2.0
  3. *
  4. * Copyright (c) 1994 by Borland International
  5. * All Rights Reserved.
  6. *
  7. Modified by Robert H�hne to be used for RHIDE.
  8. *
  9. *
  10. */
  11. #if defined( Uses_TEventQueue ) && !defined( __TEventQueue )
  12. #define __TEventQueue
  13. class TEventQueue
  14. {
  15. public:
  16. TEventQueue();
  17. ~TEventQueue();
  18. static void getMouseEvent( TEvent& );
  19. static void suspend();
  20. static void resume();
  21. friend class TView;
  22. friend void genRefs();
  23. friend class TProgram;
  24. static ushort doubleDelay;
  25. static Boolean mouseReverse;
  26. private:
  27. static TMouse *mouse;
  28. static void getMouseState( TEvent& );
  29. static void mouseInt();
  30. static void setLast( TEvent& );
  31. static MouseEventType lastMouse;
  32. public:
  33. static MouseEventType curMouse;
  34. private:
  35. static MouseEventType downMouse;
  36. static ushort downTicks;
  37. static ushort * Ticks;
  38. static TEvent eventQueue[ eventQSize ];
  39. static TEvent * eventQHead;
  40. static TEvent * eventQTail;
  41. static Boolean mouseIntFlag;
  42. static ushort eventCount;
  43. static Boolean mouseEvents;
  44. static ushort repeatDelay;
  45. static ushort autoTicks;
  46. static ushort autoDelay;
  47. friend class THWMouse;
  48. friend class THWMouseDOS;
  49. };
  50. inline void TEvent::getMouseEvent()
  51. {
  52. TEventQueue::getMouseEvent( *this );
  53. }
  54. #endif // Uses_TEventQueue