1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 06:52:34 +02:00

Enable mouse cursor in menus, fixes #46

This commit is contained in:
Timmy Sjöstedt 2016-05-23 18:44:38 +02:00
parent c8693135f9
commit 9e2db1bd11
4 changed files with 5 additions and 2 deletions

View File

@ -96,7 +96,6 @@ RWGame::RWGame(int argc, char* argv[])
cs.depthBits = 32;
cs.stencilBits = 8;
window.create(sf::VideoMode(w, h), "", style, cs);
window.setMouseCursorVisible(false);
log.addReciever(&logPrinter);
log.info("Game", "Game directory: " + config.getGameDataPath());

View File

@ -107,6 +107,8 @@ void IngameState::enter()
}
started = true;
}
game->getWindow().setMouseCursorVisible(false);
}
void IngameState::exit()

View File

@ -53,7 +53,7 @@ void MenuState::enterLoadMenu()
void MenuState::enter()
{
game->getWindow().setMouseCursorVisible(true);
}
void MenuState::exit()

View File

@ -17,6 +17,8 @@ PauseState::PauseState(RWGame* game)
void PauseState::enter()
{
getWorld()->setPaused(true);
game->getWindow().setMouseCursorVisible(true);
}
void PauseState::exit()