Mousewheel moves sliders.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2000 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-22 23:37:51 +00:00
parent 2ef090928a
commit a28b3f657b

View file

@ -738,7 +738,7 @@ void MC_Slider_Key(menuslider_t *option, int key)
{
float range = (option->current - option->min)/(option->max-option->min);
if (key == K_LEFTARROW)
if (key == K_LEFTARROW || key == K_MWHEELDOWN)
{
range -= 0.1;
if (range < 0)
@ -747,7 +747,7 @@ void MC_Slider_Key(menuslider_t *option, int key)
if (option->var)
Cvar_SetValue(option->var, range);
}
else if (key == K_RIGHTARROW)
else if (key == K_RIGHTARROW || key == K_MWHEELUP)
{
range += 0.1;
if (range > 1)