void ScreenUserPacks::Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ) { if( type != IET_FIRST_PRESS && type != IET_SLOW_REPEAT ) return; // ignore switch( MenuI.button ) { case MENU_BUTTON_LEFT: case MENU_BUTTON_RIGHT: m_pCurLOM->Input(DeviceI, type, GameI, MenuI, StyleI, m_pCurLOM); } bool bContinueWithStart = true; if ( CodeDetector::EnteredCode( GameI.controller, CODE_LINKED_MENU_SWITCH1 ) || CodeDetector::EnteredCode( GameI.controller, CODE_LINKED_MENU_SWITCH2 ) ) { const MenuInput nMenuI( MenuI.player, MENU_BUTTON_SELECT ); m_pCurLOM->Input(DeviceI, type, GameI, nMenuI, StyleI, m_pCurLOM); bContinueWithStart = false; } if ( MenuI.button == MENU_BUTTON_START && bContinueWithStart ) { if ( m_pCurLOM->GetName() == "LinkedOptionsMenuSASExit" ) { MenuBack( MenuI.player ); } else if ( m_pCurLOM->GetName() == "LinkedOptionsMenuUSBZips" ) { this->PostScreenMessage( SM_ConfirmAddZip, 0.0f ); } else if ( m_pCurLOM->GetName() == "LinkedOptionsMenuAddedZips" ) { this->PostScreenMessage( SM_ConfirmDeleteZip, 0.0f ); } } ScreenWithMenuElements::Input( DeviceI, type, GameI, MenuI, StyleI ); }
bool ScreenTestLights::MenuStart( const InputEventPlus &input ) { return MenuBack( input ); }
void ScreenArcadeDiagnostics::MenuStart( PlayerNumber pn ) { MenuBack(pn); }
void ScreenTestInput::MenuStart( PlayerNumber pn ) { MenuBack(pn); }
void Screen::MenuBack( PlayerNumber pn, const InputEventType type ) { if(!PREFSMAN->m_bDelayedBack || type==IET_SLOW_REPEAT || type==IET_FAST_REPEAT) MenuBack(pn); }