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) ...@@ -366,12 +366,14 @@ bool ListWidget::handleEvent(Event::Type e)
break; break;
case Event::UIPgUp: case Event::UIPgUp:
case Event::UILeft:
_selectedItem -= _rows - 1; _selectedItem -= _rows - 1;
if (_selectedItem < 0) if (_selectedItem < 0)
_selectedItem = 0; _selectedItem = 0;
break; break;
case Event::UIPgDown: case Event::UIPgDown:
case Event::UIRight:
_selectedItem += _rows - 1; _selectedItem += _rows - 1;
if (_selectedItem >= size) if (_selectedItem >= size)
_selectedItem = size - 1; _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