]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud_config.qc
Add a way to disable cursormode (just in case)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud_config.qc
index d1d5dfc8aec21da63dcada6245c0a9c36184f488..75c1d2c0e4328b362ca38598fc4c4788c323bfa7 100644 (file)
@@ -1076,6 +1076,14 @@ void HUD_Panel_Mouse()
        if(autocvar__menu_alpha == 1)
                return;
 
+       if not(autocvar_hud_cursormode)
+       {
+               mousepos = mousepos + getmousepos() * autocvar_menu_mouse_speed;
+               
+               mousepos_x = bound(0, mousepos_x, vid_conwidth);
+               mousepos_y = bound(0, mousepos_y, vid_conheight);
+       }
+
        if(mouseClicked)
        {
                if(prevMouseClicked == 0)