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.

38 lines
1012 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* UNIX keyboard handler routines header.
  2. Copyright by Salvador E. Tropea (SET) (2001-2002)
  3. Covered by the GPL license. */
  4. #if defined(HAVE_NCURSES) && defined(TVOS_UNIX) && !defined(TVOSf_QNXRtP) &&\
  5. !defined(LINUXKEY_HEADER_INCLUDED)
  6. #define LINUXKEY_HEADER_INCLUDED
  7. struct TEvent;
  8. // A class to encapsulate the globals, all is static!
  9. class TGKeyUNIX : public TGKey
  10. {
  11. public:
  12. TGKeyUNIX() {};
  13. // Function replacements
  14. static void Suspend();
  15. static void Resume();
  16. static int KbHit();
  17. static void Clear();
  18. static ushort GKey();
  19. static unsigned GetShiftState();
  20. static void FillTEvent(TEvent &e);
  21. static void SetKbdMapping(int version);
  22. static int GetKbdMapping(int version);
  23. // Setup the pointers to point our members
  24. static void Init();
  25. protected:
  26. // Specific for this driver
  27. static void GetRaw(void);
  28. static int Abstract;
  29. static char ascii;
  30. static ushort sFlags;
  31. static KeyType rawCode;
  32. };
  33. #endif // LINUXKEY_HEADER_INCLUDED