public bool PreFilterMessage(ref Message m)
{
if (m.Msg == 258)
{
char ch = (char)(int)m.WParam;
Console.WriteLine(ch);
if (keyBoardInput.newKeyEvent != null)
keyBoardInput.newKeyEvent(ch);
}
else if (m.Msg == 256)
{
IntPtr num = Marshal.AllocHGlobal(Marshal.SizeOf((object)m));
Marshal.StructureToPtr((object)m, num, true);
keyBoardInput.TranslateMessage(num);
}
return false;
}
}