コード例 #1
0
ファイル: HotKeyManager.cs プロジェクト: evanrosebrook/psHUD
 private static void OnHotKeyPressed(HotKeyEventArgs e)
 {
     if (HotKeyManager.HotKeyPressed != null)
     {
         HotKeyManager.HotKeyPressed(null, e);
     }
 }
コード例 #2
0
ファイル: HotKeyManager.cs プロジェクト: evanrosebrook/psHUD
            protected override void WndProc(ref Message m)
            {
                if (m.Msg == WM_HOTKEY)
                {
                    HotKeyEventArgs e = new HotKeyEventArgs(m.LParam);
                    HotKeyManager.OnHotKeyPressed(e);
                }

                base.WndProc(ref m);
            }
コード例 #3
0
ファイル: Hud.cs プロジェクト: evanrosebrook/psHUD
 void HotKeyManager_HotKeyPressed(object sender, HotKeyEventArgs e)
 {
     hotKeyPressed = true;
     hotKeyEvent.Set();
 }