diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 708ba14..b7711cc 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -409,13 +409,28 @@ namespace DS4Windows foreach (Control control in fLPSettings.Controls) { + string tempst; if (control.HasChildren) { foreach (Control ctrl in control.Controls) - ctrl.MouseHover += Items_MouseHover; + { + if (hoverTextDict.TryGetValue(ctrl, out tempst)) + { + ctrl.MouseHover += Items_MouseHover; + } + else + { + ctrl.MouseHover += ClearLastMessage; + } + } + } + else + { + if (hoverTextDict.TryGetValue(control, out tempst)) + control.MouseEnter += Items_MouseHover; + else + control.MouseHover += ClearLastMessage; } - - control.MouseHover += Items_MouseHover; } } @@ -447,6 +462,12 @@ namespace DS4Windows g.DrawImage(shield, new Rectangle(0, 0, finalWidth, finalHeight)); } + private void ClearLastMessage(object sender, EventArgs e) + { + lbLastMessage.Text = ""; + lbLastMessage.ForeColor = SystemColors.GrayText; + } + private void blankControllerTab() { for (int Index = 0, PadsLen = Pads.Length;