Exemplo n.º 1
0
void Game::focusEvent() {
    #ifdef MAGNUM_TARGET_NACL
    Application::instance()->setFullscreen(true);
    #endif
    Application::instance()->setMouseLocked(true);
    setPropagatedEvents(PropagatedEvent::Draw|PropagatedEvent::Input);
}
Exemplo n.º 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);
}
Exemplo n.º 5
0
void Menu::blurEvent() {
    setPropagatedEvents({});
}
Exemplo n.º 6
0
void Menu::focusEvent() {
    setPropagatedEvents(PropagatedEvent::Draw|PropagatedEvent::Input);
}