From d753b74e3337e4b29a2c867421a2bfa2b8c2a7cc Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 9 Oct 2014 01:51:27 +0000 Subject: [PATCH] small experiment for virtualpad: clicking buttons returns control to main window. super hacky, but might work for now. analog circle control will still need help. numberupdown for analog control is probably hopeless. --- .../tools/VirtualPads/controls/VirtualPadButton.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadButton.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadButton.cs index 0ba0ee631e..0b043c1b5c 100644 --- a/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadButton.cs +++ b/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadButton.cs @@ -172,6 +172,7 @@ namespace BizHawk.Client.EmuHawk base.OnMouseClick(e); } + GlobalWin.MainForm.Activate(); } protected override void OnClick(EventArgs e) @@ -180,6 +181,7 @@ namespace BizHawk.Client.EmuHawk { base.OnClick(e); } + GlobalWin.MainForm.Activate(); } } }