// In the case of mouse input after a setcursormode(1) call, nPrimary is xpos, nSecondary is ypos.
float CSQC_InputEvent(int bInputType, float nPrimary, float nSecondary)
{
- TC(int, bInputType);
- bool override = false;
+ TC(int, bInputType);
+ bool override = false;
override |= HUD_Panel_InputEvent(bInputType, nPrimary, nSecondary);
+ if (override)
+ return true;
override |= QuickMenu_InputEvent(bInputType, nPrimary, nSecondary);
if(autocvar__hud_configure)
HUD_Panel_Mouse();
- if(HUD_MinigameMenu_IsOpened() || active_minigame)
- HUD_Minigame_Mouse();
- if(QuickMenu_IsOpened())
- QuickMenu_Mouse();
- if(HUD_Radar_Clickable())
- HUD_Radar_Mouse();
+ else
+ {
+ if (HUD_MinigameMenu_IsOpened() || active_minigame)
+ HUD_Minigame_Mouse();
+ if (QuickMenu_IsOpened())
+ QuickMenu_Mouse();
+ if (HUD_Radar_Clickable())
+ HUD_Radar_Mouse();
+ }
prevMouseClicked = mouseClicked;