Commit 93bf9443 authored by Stephen Anthony's avatar Stephen Anthony
Browse files

In ListWidget, left and right action now does PgUp/PgDn too.

- this is available for all ports, but is most beneficial for R77, which has only joystick input
parent b2892320
......@@ -366,12 +366,14 @@ bool ListWidget::handleEvent(Event::Type e)
break;
case Event::UIPgUp:
case Event::UILeft:
_selectedItem -= _rows - 1;
if (_selectedItem < 0)
_selectedItem = 0;
break;
case Event::UIPgDown:
case Event::UIRight:
_selectedItem += _rows - 1;
if (_selectedItem >= size)
_selectedItem = size - 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment