TastaturEreignis.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef TastaturEreignis_H
  2. #define TastaturEreignis_H
  3. #define WIN32_LEAN_AND_MEAN
  4. #include <Windows.h>
  5. namespace Framework
  6. {
  7. const int TE_Press = 0;
  8. const int TE_Release = 1;
  9. const unsigned char T_Esc = 27;
  10. const unsigned char T_Tab = 0;
  11. const unsigned char T_Enter = 13;
  12. const unsigned char T_BackSpace = 8;
  13. const unsigned char T_Space = 32;
  14. const unsigned char T_Caps_Lock = 129;
  15. const unsigned char T_Shift = 130;
  16. const unsigned char T_Strg = 141;
  17. const unsigned char T_F1 = 143;
  18. const unsigned char T_F2 = 144;
  19. const unsigned char T_F3 = 157;
  20. const unsigned char T_F4 = 160;
  21. const unsigned char T_F5 = 130;
  22. const unsigned char T_F6 = 132;
  23. const unsigned char T_F7 = 133;
  24. const unsigned char T_F8 = 134;
  25. const unsigned char T_F9 = 135;
  26. const unsigned char T_F10 = 136;
  27. const unsigned char T_F11 = 137;
  28. const unsigned char T_F12 = 138;
  29. const unsigned char T_Pause = 139;
  30. const unsigned char T_Druck = 140;
  31. const unsigned char T_Einfg = 142;
  32. const unsigned char T_Entf = 145;
  33. const unsigned char T_Links = 146;
  34. const unsigned char T_Oben = 147;
  35. const unsigned char T_Rechts = 148;
  36. const unsigned char T_Unten = 149;
  37. const unsigned char T_Alt_Gr = 150;
  38. const unsigned char T_Num = 151;
  39. const unsigned char T_Pos1 = 152;
  40. const unsigned char T_BildO = 153;
  41. const unsigned char T_BildU = 154;
  42. const unsigned char T_Ende = 155;
  43. struct TastaturEreignis
  44. {
  45. int id;
  46. unsigned char taste;
  47. bool verarbeitet;
  48. };
  49. bool _ret1TE( void *obj, TastaturEreignis me );
  50. }
  51. #endif