From 1a0746e540571caad2034f9a5636fa9773f30759 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 20 Jun 2010 22:00:37 +0200 Subject: [PATCH] More usable move/resize speed for arrow keys, it increases with time. Holding Shift the speed is constant and the step is minor, for fine adjustments. --- qcsrc/client/hud.qc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 00315aebc..0ed61b792 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1208,9 +1208,13 @@ void HUD_Panel_Arrow_Action(float nPrimary) float step; if (nPrimary == K_UPARROW || nPrimary == K_DOWNARROW) - step = vid_conheight / 64; + step = vid_conheight; else - step = vid_conwidth / 64; + step = vid_conwidth; + if (hudShiftState & S_SHIFT) + step = (step / 256); // more precision + else + step = (step / 64) * (1 + 2 * (time - pressed_key_time)); highlightedPanel = highlightedPanel_prev; -- 2.39.2