Select -> up

This commit is contained in:
Glenn Maynard
2005-04-29 06:32:07 +00:00
parent 975231ef07
commit 6c9028ea16
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -1091,6 +1091,11 @@ void ScreenOptions::MenuDown( PlayerNumber pn, const InputEventType type )
MenuUpDown( pn, type, +1 );
}
void ScreenOptions::MenuSelect( PlayerNumber pn, const InputEventType type )
{
MenuUpDown( pn, type, -1 );
}
void ScreenOptions::MenuUpDown( PlayerNumber pn, const InputEventType type, int iDir )
{
ASSERT( iDir == -1 || iDir == +1 );
+1
View File
@@ -68,6 +68,7 @@ protected:
void MenuRight( PlayerNumber pn, const InputEventType type ) { ChangeValueInRow(pn,+1,type != IET_FIRST_PRESS); }
void MenuUp( PlayerNumber pn, const InputEventType type );
void MenuDown( PlayerNumber pn, const InputEventType type );
void MenuSelect( PlayerNumber pn, const InputEventType type );
void MenuUpDown( PlayerNumber pn, const InputEventType type, int iDir ); // iDir == -1 or iDir == +1
/* Returns -1 if on a row with no OptionRowDefinition (eg. EXIT). */