Sliders can now be operated with Numpad arrows if numlock if off

This commit is contained in:
zicodxx 2011-11-14 22:14:52 +01:00
parent d1a995ef6d
commit 517bc77692
2 changed files with 3 additions and 0 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20111114
--------
ui/userbox.c: Make ui_userbox_do fully event-responsive
main/newmenu.c: Sliders can now be operated with Numpad arrows if numlock if off
20111112
--------

View file

@ -1127,11 +1127,13 @@ int newmenu_key_command(window *wind, d_event *event, newmenu *menu)
{
switch( k ) {
case KEY_LEFT:
case KEY_PAD4:
item->value -= 1;
changed = 1;
rval = 1;
break;
case KEY_RIGHT:
case KEY_PAD6:
item->value++;
changed = 1;
rval = 1;