* Take the "PeekBuffer returning -1" case into account
This commit is contained in:
jean.chalard
2008-11-26 14:07:19 +00:00
parent 41c45766ad
commit 9b04331415

View File

@@ -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)