mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
2ef090928a
commit
a28b3f657b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue