Mercurial > might-and-magic-trilogy
comparison Keyboard.cpp @ 208:af624eaf2fc5 tip
14.01.13
author | Ritor1 |
---|---|
date | Mon, 14 Jan 2013 10:39:01 +0600 |
parents | 8b0c4d626477 |
children |
comparison
equal
deleted
inserted
replaced
207:8e3fea954768 | 208:af624eaf2fc5 |
---|---|
109 for (uint i = 0; i < 30; ++i) | 109 for (uint i = 0; i < 30; ++i) |
110 GetAsyncKeyState(pVirtualKeyCodesMapping[i]); | 110 GetAsyncKeyState(pVirtualKeyCodesMapping[i]); |
111 } | 111 } |
112 | 112 |
113 //----- (00459E5A) -------------------------------------------------------- | 113 //----- (00459E5A) -------------------------------------------------------- |
114 void KeyboardActionMapping::_459E5A(int a2, int a3, GUIWindow *pWindow) | 114 void KeyboardActionMapping::EnterText(int a2, int pNumWord, GUIWindow *pWindow) |
115 { | 115 { |
116 KeyboardActionMapping *v4; // esi@1 | 116 KeyboardActionMapping *v4; // esi@1 |
117 | 117 |
118 v4 = this; | 118 v4 = this; |
119 memset(this->pPressedKeysBuffer, 0, 0x101u); | 119 memset(this->pPressedKeysBuffer, 0, 0x101u); |
120 v4->uNumKeysPressed = 0; | 120 v4->uNumKeysPressed = 0; |
121 if ( a2 ) | 121 if ( a2 ) |
122 v4->field_204 = 2; | 122 v4->field_204 = 2; |
123 else | 123 else |
124 v4->field_204 = 1; | 124 v4->field_204 = 1; |
125 v4->field_FC = a3; | 125 v4->field_FC = pNumWord; |
126 v4->pWindow = pWindow; | 126 v4->pWindow = pWindow; |
127 pWindow->field_40 = 1; | 127 pWindow->field_40 = 1; |
128 if ( LOBYTE(pGame->pKeyboardInstance->bUsingAsynKeyboard) ) | 128 if ( LOBYTE(pGame->pKeyboardInstance->bUsingAsynKeyboard) ) |
129 { | 129 { |
130 if ( pAsyncKeyboard ) | 130 if ( pAsyncKeyboard ) |