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.

76 lines
1.6 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( __EVENT_CODES )
  12. #define __EVENT_CODES
  13. /* If this variable is set to nonzero, TV uses for the screen
  14. output the monochrome monitor. All attempts to set an video
  15. mode are ignored, the user screen is not saved and/or restored
  16. and there is checking done, if the monochrome monitor is
  17. valid. That means, you have to set this variable ONLY if you
  18. know what you do.
  19. */
  20. extern int dual_display;
  21. /* Event codes */
  22. const ushort evMouseDown = 0x0001;
  23. const ushort evMouseUp = 0x0002;
  24. const ushort evMouseMove = 0x0004;
  25. const ushort evMouseAuto = 0x0008;
  26. const ushort evKeyDown = 0x0010;
  27. const ushort evCommand = 0x0100;
  28. const ushort evBroadcast = 0x0200;
  29. /* Event masks */
  30. const ushort evNothing = 0x0000;
  31. const ushort evMouse = 0x000f;
  32. const ushort evKeyboard = 0x0010;
  33. const ushort evMessage = 0xFF00;
  34. /* Mouse button state masks */
  35. /* SET: Note that I redefined them to make it coherent with most UNIX systems
  36. where the left button is the first, the middle one the second, etc. But safe
  37. code shouldn't rely on it. */
  38. const ushort mbLeftButton = 0x01;
  39. const ushort mbMiddleButton= 0x02;
  40. const ushort mbRightButton = 0x04;
  41. const ushort mbButton4 = 0x08;
  42. const ushort mbButton5 = 0x10;
  43. #endif // __EVENT_CODES
  44. #if defined( Uses_TEvent )
  45. #include <tv/event.h>
  46. #endif
  47. #if defined( Uses_TEventQueue )
  48. #include <tv/eventqu.h>
  49. #endif
  50. #if defined( Uses_TScreen )
  51. #include <tv/screen.h>
  52. #endif