💰 Make Money Sharing Files ➜

Untitled

a guest
Jul 01st, 2026
48 view(s)
Never
NOTE: This is a guest paste. Sign up for a free account to edit, delete, and manage your pastes!
Text 3.26 KB
Raw
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
eterlib/input.cpp ---open

void CInputKeyboard::ResetKeyboard()

find 


#ifdef KEYBOARD_LOADING_FIX
	ms_bKeyboardEnabled = false;
#endif

add


	if (FAILED(hr))
	{
		hr = ms_lpKeyboard->Acquire();


		//if (hr == DIERR_OTHERAPPHASPRIO || hr == DIERR_NOTACQUIRED);
		return;
	}


find 


	if (FAILED(hr))
	{
#ifdef KEYBOARD_LOADING_FIX
		if (ms_bKeyboardEnabled == true)
#endif
		{
			hr = ms_lpKeyboard->Acquire();
		}


		//if (hr == DIERR_OTHERAPPHASPRIO || hr == DIERR_NOTACQUIRED);
		return;
	}


change




#ifdef KEYBOARD_LOADING_FIX
void CInputKeyboard::ToggleUsedKeyboard(bool enable)
{

	if (!ms_lpKeyboard)
		return;
	ms_bKeyboardEnabled = enable;

	bool isCheck;

	if (ms_bKeyboardEnabled)
		isCheck = true;
	else
		isCheck = false;

	HRESULT hr = ms_lpKeyboard->GetDeviceState(sizeof(ms_diks), &ms_diks);
	if (FAILED(hr))
	{
		if (ms_bKeyboardEnabled)
		{
			hr = ms_lpKeyboard->Acquire();
			isCheck = false;
		}
		else
		{
			hr = ms_lpKeyboard->Unacquire();
			isCheck = true;
		}
	}

	if (ms_bKeyboardEnabled && isCheck)
		ms_lpKeyboard->Acquire();
	else
		ms_lpKeyboard->Unacquire();
}
#endif


list end of add


eterlib/input.h ---open


	void			KeyUp(int iIndex);

find and after add

#ifdef KEYBOARD_LOADING_FIX
		void			ToggleUsedKeyboard(bool enable);
#endif

		static char					ms_diks[256];

find and after add


#ifdef KEYBOARD_LOADING_FIX
		bool						ms_bKeyboardEnabled;
#endif



#define KEYBOARD_LOADING_FIX

localeinc.h add


eterlib/pythonapplicationmodule.cpp ---open

void initapp()

find and before add 


#ifdef KEYBOARD_LOADING_FIX
PyObject* appSetKeyboardUsed(PyObject* poSelf, PyObject* poArgs)
{
	bool bFlag = false;
	if (!PyTuple_GetBoolean(poArgs, 0, &bFlag))
		return Py_BuildException();

	CPythonApplication::Instance().ToggleUsedKeyboard(bFlag);

	return Py_BuildNone();
}
#endif


{ NULL, NULL, NULL },

find and before add 

#ifdef KEYBOARD_LOADING_FIX
		{ "SetKeyboardUsed", 			appSetKeyboardUsed,				METH_VARARGS },
#endif



#ifdef KEYBOARD_LOADING_FIX
	PyModule_AddIntConstant(poModule, "KEYBOARD_LOADING_FIX", 1);
#else
	PyModule_AddIntConstant(poModule, "KEYBOARD_LOADING_FIX", 0);
#endif
list end of add





python - game.py

player.SetGameWindow(self)

find and add after


		if app.KEYBOARD_LOADING_FIX:
			app.SetKeyboardUsed(True)


python - introcreate.py

net.SetPhaseWindow(net.PHASE_WINDOW_CREATE, self)


find and add after


		if app.KEYBOARD_LOADING_FIX:
			app.SetKeyboardUsed(True)

python - introempire.py

net.SetPhaseWindow(net.PHASE_WINDOW_EMPIRE, self)

		if app.KEYBOARD_LOADING_FIX:
			app.SetKeyboardUsed(True)

find and add after

python - introloading.py

net.SetPhaseWindow(net.PHASE_WINDOW_LOAD, self)

find and add after


		if app.KEYBOARD_LOADING_FIX:
			if not stream.id == "sanjix9":
				app.SetKeyboardUsed(False)


python - intrologin.py


net.SetPhaseWindow(net.PHASE_WINDOW_LOGIN, self)


find and add after


		if app.KEYBOARD_LOADING_FIX:
			app.SetKeyboardUsed(True)

python - introselect.py

net.SetPhaseWindow(net.PHASE_WINDOW_SELECT, self)

find and add after

		if app.KEYBOARD_LOADING_FIX:
			app.SetKeyboardUsed(True)