Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PreFilterMessage()

bool ReLogic.Localization.IME.WinImm32Ime.PreFilterMessage ( ref Message message)
inline

Implements ReLogic.OS.Windows.IMessageFilter.

Definition at line 162 of file WinImm32Ime.cs.

163 {
164 if (message.Msg == 8)
165 {
166 SetEnabled(bEnable: false);
167 _isFocused = false;
168 return true;
169 }
170 if (message.Msg == 7)
171 {
172 if (base.IsEnabled)
173 {
174 SetEnabled(bEnable: true);
175 }
176 _isFocused = true;
177 return true;
178 }
179 if (message.Msg == 641)
180 {
181 message.LParam = IntPtr.Zero;
182 return false;
183 }
184 if (!base.IsEnabled)
185 {
186 return false;
187 }
188 switch (message.Msg)
189 {
190 case 81:
191 return true;
192 case 269:
193 _compString = "";
194 return true;
195 case 271:
197 break;
198 case 270:
199 _compString = "";
201 break;
202 case 642:
203 {
204 int num = message.WParam.ToInt32();
205 if ((uint)(num - 3) <= 2u)
206 {
208 }
209 return true;
210 }
211 case 258:
212 OnKeyPress((char)message.WParam.ToInt32());
213 break;
214 }
215 return false;
216 }
static readonly IntPtr Zero
Definition IntPtr.cs:18

References ReLogic.Localization.IME.WinImm32Ime._compString, ReLogic.Localization.IME.WinImm32Ime._isFocused, ReLogic.Localization.IME.WinImm32Ime.GetCompositionString(), ReLogic.Localization.IME.PlatformIme.OnKeyPress(), ReLogic.Localization.IME.WinImm32Ime.SetEnabled(), ReLogic.Localization.IME.WinImm32Ime.UpdateCandidateList(), and System.IntPtr.Zero.