Defined usage of double buttons input for PSP only, it caused some annoying exit with touch inputs
This commit is contained in:
@@ -321,6 +321,7 @@ void GameApp::Update()
|
|||||||
if (systemError.size())
|
if (systemError.size())
|
||||||
return;
|
return;
|
||||||
JGE* mEngine = JGE::GetInstance();
|
JGE* mEngine = JGE::GetInstance();
|
||||||
|
#if defined (PSP)
|
||||||
if (mEngine->GetButtonState(JGE_BTN_MENU) && mEngine->GetButtonClick(JGE_BTN_CANCEL))
|
if (mEngine->GetButtonState(JGE_BTN_MENU) && mEngine->GetButtonClick(JGE_BTN_CANCEL))
|
||||||
{
|
{
|
||||||
char s[80];
|
char s[80];
|
||||||
@@ -337,6 +338,7 @@ void GameApp::Update()
|
|||||||
//Restart Rendering engine when START and SQUARE ARE PRESSED SIMULTANEOUSLY
|
//Restart Rendering engine when START and SQUARE ARE PRESSED SIMULTANEOUSLY
|
||||||
if (mEngine->GetButtonState(JGE_BTN_MENU) && mEngine->GetButtonState(JGE_BTN_PRI))
|
if (mEngine->GetButtonState(JGE_BTN_MENU) && mEngine->GetButtonState(JGE_BTN_PRI))
|
||||||
JRenderer::Destroy();
|
JRenderer::Destroy();
|
||||||
|
#endif //PSP
|
||||||
|
|
||||||
float dt = mEngine->GetDelta();
|
float dt = mEngine->GetDelta();
|
||||||
if (dt > 35.0f) // min 30 FPS ;)
|
if (dt > 35.0f) // min 30 FPS ;)
|
||||||
|
|||||||
Reference in New Issue
Block a user