Rename 'resetInput' to 'resetInputStates'

This commit is contained in:
Jonas Kulla 2013-09-04 12:10:21 +02:00
parent d0fa2dd37a
commit a75dea3ffe
2 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ void EventThread::process(RGSSThreadData &rtData)
break;
case SDL_WINDOWEVENT_FOCUS_LOST :
resetInput();
resetInputStates();
break;
}
break;
@ -159,7 +159,7 @@ void EventThread::process(RGSSThreadData &rtData)
break;
case SDL_JOYDEVICEREMOVED :
resetInput();
resetInputStates();
break;
case SDL_MOUSEBUTTONDOWN :
@ -196,7 +196,7 @@ void EventThread::cleanup()
}
}
void EventThread::resetInput()
void EventThread::resetInputStates()
{
memset(&keyStates, 0, sizeof(keyStates));
memset(&joyState, 0, sizeof(joyState));
@ -250,7 +250,7 @@ void EventThread::showMessageBox(const char *body, int flags)
/* Keep repainting screen while box is open */
gState->graphics().repaintWait(&msgBoxDone);
/* Prevent endless loops */
resetInput();
resetInputStates();
}
bool EventThread::getFullscreen()

View File

@ -77,7 +77,7 @@ public:
void showMessageBox(const char *body, int flags = 0);
private:
void resetInput();
void resetInputStates();
void setFullscreen(SDL_Window *, bool mode);
bool fullscreen;
volatile bool msgBoxDone;