forked from len0rd/rockbox
mikmod: Invert scrolling on everything that's not an ipod
mikmod uses WPS_VOLUP and WPS_VOLDOWN to scroll down and up respectively, which works for the ipod clickwheel, but results in inverted scrolling for everyone else. Correct this for all non-ipods and correct the manul (which actually didn't report this either) Change-Id: I5a84512dfbf068ca5c4206f4362185d4d7e5c9fc
This commit is contained in:
parent
3c4aed56c0
commit
003da4d223
2 changed files with 10 additions and 2 deletions
|
@ -790,7 +790,11 @@ static int playfile(char* filename)
|
|||
button = rb->get_action(CONTEXT_WPS, TIMEOUT_NOBLOCK);
|
||||
switch (button)
|
||||
{
|
||||
#ifdef HAVE_SCROLLWHEEL
|
||||
case ACTION_WPS_VOLUP:
|
||||
#else
|
||||
case ACTION_WPS_VOLDOWN:
|
||||
#endif
|
||||
if ( display != DISPLAY_INFO )
|
||||
{
|
||||
if ( textlines-vscroll >= MAX_LINES )
|
||||
|
@ -804,7 +808,11 @@ static int playfile(char* filename)
|
|||
rb->adjust_volume(1);
|
||||
break;
|
||||
|
||||
#ifdef HAVE_SCROLLWHEEL
|
||||
case ACTION_WPS_VOLDOWN:
|
||||
#else
|
||||
case ACTION_WPS_VOLUP:
|
||||
#endif
|
||||
if ( display != DISPLAY_INFO )
|
||||
{
|
||||
if ( vscroll > 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue