MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / eventsProcess

Method eventsProcess

Source/Fodder.cpp:3041–3060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3039}
3040
3041void cFodder::eventsProcess() {
3042
3043 mMouse_EventLastWheel.Clear();
3044
3045 if (mParams->mDemoPlayback) {
3046 for (auto Event : mGame_Data.mDemoRecorded.GetEvents(mGame_Data.mDemoRecorded.mTick))
3047 eventProcess(Event);
3048
3049 } else {
3050 for (auto Event : *mWindow->EventGet()) {
3051 if (mParams->mDemoRecord) {
3052 if(Event.mType != eEventType::eEvent_MouseMove)
3053 mGame_Data.mDemoRecorded.AddEvent(mGame_Data.mDemoRecorded.mTick, Event);
3054 }
3055 eventProcess(Event);
3056 }
3057 }
3058
3059 mWindow->EventGet()->clear();
3060}
3061
3062void cFodder::keyProcess(uint8 pKeyCode, bool pPressed) {
3063 if (pPressed)

Callers

nothing calls this directly

Calls 5

GetEventsMethod · 0.80
EventGetMethod · 0.80
AddEventMethod · 0.80
ClearMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected