From e46de9e5c342ffa4e1c66a595175b8cc34428195 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 30 Aug 2020 11:21:45 -0500 Subject: [PATCH] Virtualpads - fix single axis controls being tied to each other, fixes #2351 --- .../tools/VirtualPads/controls/VirtualPadAnalogButton.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadAnalogButton.cs b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadAnalogButton.cs index 036388fb14..36e2e7fab5 100644 --- a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadAnalogButton.cs +++ b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/controls/VirtualPadAnalogButton.cs @@ -32,11 +32,12 @@ namespace BizHawk.Client.EmuHawk Orientation orientation) { _stickyXorAdapter = stickyXorAdapter; - Name = name; + InitializeComponent(); - // AnalogTrackBar, DisplayNameLabel, and ValueLabel are now assigned + // Name, AnalogTrackBar, DisplayNameLabel, and ValueLabel are now assigned + Name = name; var trackbarWidth = Size.Width - 15; int trackbarHeight; if ((AnalogTrackBar.Orientation = orientation) == Orientation.Vertical)