コード例 #1
0
 /// <summary>
 /// Invoke user call backs
 /// </summary>
 /// <param name="kd"></param>
 private static void KListener_KeyDown(KeyData kd)
 {
     OnKeyInput?.Invoke(null, new KeyInputEventArgs()
     {
         KeyData = kd
     });
 }
コード例 #2
0
        private static void KListener_KeyDown(KeyData kd)
        {
            EventHandler <KeyInputEventArgs> handler = OnKeyInput;

            if (handler != null)
            {
                handler(null, new KeyInputEventArgs()
                {
                    KeyData = kd
                });
            }
        }