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.

39 lines
957 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* WinNT screen routines header.
  2. Copyright (c) 2002 by Salvador E. Tropea (SET)
  3. Covered by the GPL license. */
  4. // This headers needs windows header
  5. #if defined(TVOS_Win32) && !defined(WINNTKEY_HEADER_INCLUDED)
  6. #define WINNTKEY_HEADER_INCLUDED
  7. struct TEvent;
  8. // A class to encapsulate the globals, all is static!
  9. class TGKeyWinNT : public TGKey
  10. {
  11. public:
  12. TGKeyWinNT() {};
  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. // Setup the pointers to point our members
  23. static void Init();
  24. protected:
  25. // For this driver
  26. static INPUT_RECORD inpRec;
  27. static unsigned shiftState;
  28. static ushort vk2kk[];
  29. friend class THWMouseWinNT;
  30. friend class TScreenWinNT;
  31. };
  32. #endif // WINNTKEY_HEADER_INCLUDED