Пример #1
0
void Game::focusEvent() {
    #ifdef MAGNUM_TARGET_NACL
    Application::instance()->setFullscreen(true);
    #endif
    Application::instance()->setMouseLocked(true);
    setPropagatedEvents(PropagatedEvent::Draw|PropagatedEvent::Input);
}
Пример #2
0
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);
}
Пример #5
0
void Menu::blurEvent() {
    setPropagatedEvents({});
}
Пример #6
0
void Menu::focusEvent() {
    setPropagatedEvents(PropagatedEvent::Draw|PropagatedEvent::Input);
}