From 9b0433141527b0346bed1b7e19e84aed6ddb747d Mon Sep 17 00:00:00 2001 From: "jean.chalard" Date: Wed, 26 Nov 2008 14:07:19 +0000 Subject: [PATCH] J : * Take the "PeekBuffer returning -1" case into account --- JGE/src/JGE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JGE/src/JGE.cpp b/JGE/src/JGE.cpp index 21cb5ab11..f2b0f3a05 100644 --- a/JGE/src/JGE.cpp +++ b/JGE/src/JGE.cpp @@ -380,7 +380,7 @@ void JGE::Run() mDelta = (curr-mLastTime) / (float)mTickFrequency;// * 1000.0f; - while (0 != sceCtrlPeekBufferPositive(&mCtrlPad, 1)) + while (0 >= sceCtrlPeekBufferPositive(&mCtrlPad, 1)) { for (signed int i = sizeof(gKeyCodeList)/sizeof(gKeyCodeList[0]) - 1; i >= 0; --i) if (gKeyCodeList[i] & mCtrlPad.Buttons)