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.

62 lines
1.5 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Windows screen routines header.
  3. *
  4. * Copyright (c) 2002 by Jose Angel Sanchez Caso (JASC)
  5. *
  6. * Squeleton based in code by Salvador E. Tropea (SET)
  7. * Covered by the GPL license.
  8. */
  9. #if defined(TVOS_Win32) && !defined(WINDOWSKEY_HEADER_INCLUDED)
  10. #define WINDOWSKEY_HEADER_INCLUDED
  11. struct TEvent;
  12. struct TGKeyWinGr: virtual public TDisplayWinGr // Access to display attributes
  13. , virtual public TGKey // A class to encapsulate the globals, all is static!
  14. , virtual public TVCodePage // Trick to access codepage mappings
  15. { TGKeyWinGr(): TVCodePage(0,0,0) {}; // Only need access to protected members of TVCodePage
  16. static void init();
  17. static int testEvents( UINT message
  18. , WPARAM wParam
  19. , LPARAM lParam );
  20. // Function replacements
  21. // static void Suspend();
  22. // static void Resume();
  23. // static void Clear();
  24. // static ushort GKey();
  25. // static void SetKbdMapping(int version);
  26. static int KbHit ();
  27. static unsigned GetShiftState();
  28. static void Init (); // Setup the pointers to point our members
  29. static void FillTEvent ( TEvent &e );
  30. protected: // For this driver
  31. friend class THWMouseWinGr;
  32. friend class TScreenWinGr;
  33. private:
  34. // Support variables
  35. static ushort keyMask;
  36. static CodePage * remapKey; // Multilingual keyboard support
  37. // Support methods
  38. static int setKey( int vcode );
  39. };
  40. #endif // WINDOWSKEY_HEADER_INCLUDED