MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / update

Method update

source/modes/ModeManager.cpp:152–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void ModeManager::update(const Ogre::FrameEvent& evt)
153{
154 checkModeChange();
155
156 // We update the current mode
157 AbstractApplicationMode* currentMode = getCurrentMode();
158
159 currentMode->getKeyboard()->capture();
160 currentMode->getMouse()->capture();
161
162 currentMode->mouseMoved(OIS::MouseEvent(nullptr, currentMode->getMouse()->getMouseState()));
163
164 currentMode->onFrameStarted(evt);
165}

Callers 1

onFrameStartedMethod · 0.45

Calls 5

MouseEventClass · 0.85
getKeyboardMethod · 0.80
getMouseMethod · 0.80
mouseMovedMethod · 0.45
onFrameStartedMethod · 0.45

Tested by

no test coverage detected