Input Widget - left click = focus() only, disable all other mouse events
This commit is contained in:
parent
9419e02091
commit
003b7ebebf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue