Terraria.keyBoardInput.inKey.PreFilterMessage C# (CSharp) Method

PreFilterMessage() public method

public PreFilterMessage ( Message &m ) : bool
m System.Windows.Forms.Message
return bool
            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;
            }
        }
keyBoardInput.inKey