Reallow left/right RGUI scroll.

Assumed this was a bug as right scroll was broken.
Fixes right case as well.
This commit is contained in:
Themaister 2013-05-13 00:26:46 +02:00
parent 2e2efa2d09
commit 559b5d39fc

View File

@ -2568,9 +2568,14 @@ uint64_t rgui_input(void)
rgui->trigger_state = input_state & ~rgui->old_input_state;
// FIXME: Allowing a held-down scroll is desired for left/right in filebrowser,
// but seems weird to allow in setting options.
// Logic here should take this into account.
rgui->do_held = (input_state & (
(1ULL << DEVICE_NAV_UP) |
(1ULL << DEVICE_NAV_DOWN))) &&
(1ULL << DEVICE_NAV_DOWN) |
(1ULL << DEVICE_NAV_LEFT) |
(1ULL << DEVICE_NAV_RIGHT))) &&
!(input_state & (1ULL << DEVICE_NAV_MENU));
return input_state;