From e42867ad64f77845d8c2383204ff446cd378f037 Mon Sep 17 00:00:00 2001 From: EricS-Valve Date: Tue, 25 Mar 2025 14:34:03 -0700 Subject: [PATCH] Update Menu.cpp --- src/vgui2/vgui_controls/Menu.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/vgui2/vgui_controls/Menu.cpp b/src/vgui2/vgui_controls/Menu.cpp index 5e354edf..ac45dec1 100644 --- a/src/vgui2/vgui_controls/Menu.cpp +++ b/src/vgui2/vgui_controls/Menu.cpp @@ -2386,16 +2386,15 @@ int Menu::GetCurrentlyHighlightedItem() // Purpose: Respond to cursor entering a menuItem. //----------------------------------------------------------------------------- // -// Josh: Slightly annoying, but need to completely ensure compatiblity with the SDK + GameUI interactions. +// Josh: Slightly annoying, but need to completely ensure compatibility with the SDK + GameUI interactions. #ifdef PLATFORM_64BITS void Menu::OnCursorEnteredMenuItem( vgui::Panel* VPanel ) -{ - VPANEL menuItem = (VPANEL) VPanel; #else void Menu::OnCursorEnteredMenuItem(int VPanel) +#endif { VPANEL menuItem = (VPANEL)VPanel; -#endif + // if we are in mouse mode if (m_iInputMode == MOUSE) { @@ -2419,13 +2418,12 @@ void Menu::OnCursorEnteredMenuItem(int VPanel) //----------------------------------------------------------------------------- #ifdef PLATFORM_64BITS void Menu::OnCursorExitedMenuItem( vgui::Panel* VPanel ) -{ - VPANEL menuItem = (VPANEL) VPanel; #else void Menu::OnCursorExitedMenuItem( int VPanel ) +#endif { VPANEL menuItem = (VPANEL) VPanel; -#endif + // only care if we are in mouse mode if (m_iInputMode == MOUSE) {