From 003b7ebebf48f82ba3ec6549c05d8bb62cfad7f1 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Sat, 9 Jul 2011 22:07:13 +0000 Subject: [PATCH] Input Widget - left click = focus() only, disable all other mouse events --- BizHawk.MultiClient/config/InputWidget.cs | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/BizHawk.MultiClient/config/InputWidget.cs b/BizHawk.MultiClient/config/InputWidget.cs index dd685c9d2c..74d1193825 100644 --- a/BizHawk.MultiClient/config/InputWidget.cs +++ b/BizHawk.MultiClient/config/InputWidget.cs @@ -190,6 +190,40 @@ namespace BizHawk.MultiClient e.Handled = true; } + protected override void WndProc(ref Message m) + { + switch (m.Msg) + { + case 0x0201: //WM_LBUTTONDOWN + { + this.Focus(); + return; + } + //case 0x0202://WM_LBUTTONUP + //{ + // return; + //} + case 0x0203://WM_LBUTTONDBLCLK + { + return; + } + case 0x0204://WM_RBUTTONDOWN + { + return; + } + case 0x0205://WM_RBUTTONUP + { + return; + } + case 0x0206://WM_RBUTTONDBLCLK + { + return; + } + } + + base.WndProc(ref m); + } + protected override void OnGotFocus(EventArgs e) { //base.OnGotFocus(e);