From: terencehill Date: Sun, 27 Dec 2020 22:59:02 +0000 (+0100) Subject: Minigames: implement correct handling of cursor if hud_cursor_mode is 0; it fixes... X-Git-Tag: xonotic-v0.8.5~597^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bda0a3b27c78be189fb47e7fcdd911c076df700e;p=xonotic%2Fxonotic-data.pk3dir.git Minigames: implement correct handling of cursor if hud_cursor_mode is 0; it fixes #2496 --- diff --git a/qcsrc/common/minigames/cl_minigames_hud.qc b/qcsrc/common/minigames/cl_minigames_hud.qc index ee7e63414..861e01be3 100644 --- a/qcsrc/common/minigames/cl_minigames_hud.qc +++ b/qcsrc/common/minigames/cl_minigames_hud.qc @@ -619,6 +619,13 @@ float HUD_Minigame_InputEvent(float bInputType, float nPrimary, float nSecondary return true; } + if(bInputType == 2) + { + if ( active_minigame && HUD_mouse_over(HUD_PANEL(MINIGAMEBOARD)) ) + active_minigame.minigame_event(active_minigame,"mouse_moved",mousepos); + return false; + } + if(bInputType == 0) { if(nPrimary == K_ALT) hudShiftState |= S_ALT; if(nPrimary == K_CTRL) hudShiftState |= S_CTRL; @@ -659,8 +666,6 @@ float HUD_Minigame_InputEvent(float bInputType, float nPrimary, float nSecondary if ( device && active_minigame.minigame_event( active_minigame,strcat(device,"_",action),nPrimary) ) return true; - - /// TODO: bInputType == 2? } if ( bInputType == 0 )