comparison Keyboard.h @ 1038:39f42990698f

Cleanings
author Nomad
date Thu, 23 May 2013 03:29:29 +0200
parents bf31c505f4d3
children db395ce89ede
comparison
equal deleted inserted replaced
1035:306ec23b37df 1038:39f42990698f
54 const char *GetVKeyDisplayName(signed int a1); 54 const char *GetVKeyDisplayName(signed int a1);
55 const unsigned __int8 GetActionDefaultVKey(const char *Str); 55 const unsigned __int8 GetActionDefaultVKey(const char *Str);
56 void ReadMappings(); 56 void ReadMappings();
57 void StoreMappings(); 57 void StoreMappings();
58 bool _459F10(unsigned int a2); 58 bool _459F10(unsigned int a2);
59 void _459ED1(int a2); 59 void SetWindowInputStatus(int a2);
60 void EnterText(int a2, int a3, struct GUIWindow *pWindow); 60 void EnterText(int a2, int max_string_len, struct GUIWindow *pWindow);
61 void ResetKeys(); 61 void ResetKeys();
62 void SetDefaultMapping(); 62 void SetDefaultMapping();
63 63
64 unsigned int uLastKeyPressed; 64 unsigned int uLastKeyPressed;
65 int field_4; 65 int field_4;
66 int field_8; 66 int field_8;
67 unsigned int pVirtualKeyCodesMapping[30]; 67 unsigned int pVirtualKeyCodesMapping[30];
68 KeyToggleType pToggleTypes[30]; 68 KeyToggleType pToggleTypes[30];
69 int field_FC; 69 int max_input_string_len;
70 unsigned __int8 pPressedKeysBuffer[257]; 70 unsigned __int8 pPressedKeysBuffer[257];
71 unsigned __int8 uNumKeysPressed; 71 unsigned __int8 uNumKeysPressed;
72 char field_202; 72 char field_202;
73 char field_203; 73 char field_203;
74 int field_204; 74 int field_204;
89 unsigned int bUsingAsynKeyboard; 89 unsigned int bUsingAsynKeyboard;
90 }; 90 };
91 #pragma pack(pop) 91 #pragma pack(pop)
92 92
93 93
94 #pragma pack(push, 1)
95 struct AsyncKeyboard
96 {
97 AsyncKeyboard();
98 ~AsyncKeyboard();
99
100 bool Initialize();
101 char map_key(int key);
102 char _45B4EC(unsigned __int8 a2);
103 void Thread();
104 char _45B3A4();
105 void Suspend();
106 void Resume();
107 char CreateDirectInputKeyboard();
108 char _45B229();
109 void _45B1B1();
110 void Release();
111
112 static int __stdcall ThreadStarter(AsyncKeyboard *pInstance);
113 static void EnterCriticalSection();
114 static void LeaveCriticalSection();
115 };
116 #pragma pack(pop)
117 94
118 95
119 extern struct KeyboardActionMapping *pKeyActionMap; 96 extern struct KeyboardActionMapping *pKeyActionMap;
120 extern struct AsyncKeyboard *pAsyncKeyboard;