Changed splash interrupt to only react to select key, and use the key status

rather than SDL events.
This commit is contained in:
Pieter Hulshoff 2018-04-18 21:52:10 +02:00
parent 026e82e97f
commit c3eec64cfc
2 changed files with 10 additions and 2 deletions

View File

@ -333,9 +333,17 @@ void RetroFE::run( )
SDL_Event e;
if ( splashMode && SDL_PollEvent( &e ) )
{
if ( input_.update( e ) )
if ( input_.update( e ) && input_.keystate(UserInput::KeyCodeSelect) )
{
exitSplashMode = true;
while ( SDL_PollEvent( &e ) )
{
if ( e.type == SDL_JOYDEVICEADDED || e.type == SDL_JOYDEVICEREMOVED )
{
input_.update( e );
}
}
input_.resetStates( );
attract_.reset( );
}
}

View File

@ -21,7 +21,7 @@
std::string retrofe_version_major = "0";
std::string retrofe_version_minor = "8";
std::string retrofe_version_build = "15b4";
std::string retrofe_version_build = "15b5";
std::string Version::getString( )