void Game::focusEvent() { #ifdef MAGNUM_TARGET_NACL Application::instance()->setFullscreen(true); #endif Application::instance()->setMouseLocked(true); setPropagatedEvents(PropagatedEvent::Draw|PropagatedEvent::Input); }
void Game::blurEvent() { /* Draw the game in the background */ setPropagatedEvents(PropagatedEvent::Draw); Application::instance()->setMouseLocked(false); #ifdef MAGNUM_TARGET_NACL Application::instance()->setFullscreen(false); #endif }
void GameScreen::blurEvent() { setPropagatedEvents(PropagatedEvent::Draw); }
void GameScreen::focusEvent() { setPropagatedEvents(PropagatedEvent::Draw|PropagatedEvent::Input); }
void Menu::blurEvent() { setPropagatedEvents({}); }
void Menu::focusEvent() { setPropagatedEvents(PropagatedEvent::Draw|PropagatedEvent::Input); }