allow repeats in scrolling
This commit is contained in:
@@ -393,12 +393,13 @@ void OptionsList::Input( const InputEventPlus &input )
|
|||||||
|
|
||||||
if( input.MenuI == MENU_BUTTON_LEFT )
|
if( input.MenuI == MENU_BUTTON_LEFT )
|
||||||
{
|
{
|
||||||
if( input.type != IET_FIRST_PRESS )
|
if( input.type == IET_RELEASE )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( INPUTMAPPER->IsBeingPressed(MENU_BUTTON_RIGHT, pn) )
|
if( INPUTMAPPER->IsBeingPressed(MENU_BUTTON_RIGHT, pn) )
|
||||||
{
|
{
|
||||||
SwitchMenu( -1 );
|
if( input.type == IET_FIRST_PRESS )
|
||||||
|
SwitchMenu( -1 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -413,12 +414,13 @@ void OptionsList::Input( const InputEventPlus &input )
|
|||||||
}
|
}
|
||||||
else if( input.MenuI == MENU_BUTTON_RIGHT )
|
else if( input.MenuI == MENU_BUTTON_RIGHT )
|
||||||
{
|
{
|
||||||
if( input.type != IET_FIRST_PRESS )
|
if( input.type == IET_RELEASE )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( INPUTMAPPER->IsBeingPressed(MENU_BUTTON_LEFT, pn) )
|
if( INPUTMAPPER->IsBeingPressed(MENU_BUTTON_LEFT, pn) )
|
||||||
{
|
{
|
||||||
SwitchMenu( +1 );
|
if( input.type == IET_FIRST_PRESS )
|
||||||
|
SwitchMenu( +1 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user