Defined usage of double buttons input for PSP only, it caused some annoying exit with touch inputs

This commit is contained in:
Xawotihs
2011-08-11 21:56:27 +00:00
parent b2f1252e50
commit 5414cd940e

View File

@@ -321,6 +321,7 @@ void GameApp::Update()
if (systemError.size())
return;
JGE* mEngine = JGE::GetInstance();
#if defined (PSP)
if (mEngine->GetButtonState(JGE_BTN_MENU) && mEngine->GetButtonClick(JGE_BTN_CANCEL))
{
char s[80];
@@ -337,6 +338,7 @@ void GameApp::Update()
//Restart Rendering engine when START and SQUARE ARE PRESSED SIMULTANEOUSLY
if (mEngine->GetButtonState(JGE_BTN_MENU) && mEngine->GetButtonState(JGE_BTN_PRI))
JRenderer::Destroy();
#endif //PSP
float dt = mEngine->GetDelta();
if (dt > 35.0f) // min 30 FPS ;)