fix: el cursor del mouse no està amagat per defecte
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
#include <SDL2/SDL_hints.h> // for SDL_SetHint, SDL_HINT_RENDER_DR...
|
#include <SDL2/SDL_hints.h> // for SDL_SetHint, SDL_HINT_RENDER_DR...
|
||||||
#include <SDL2/SDL_scancode.h> // for SDL_SCANCODE_A, SDL_SCANCODE_ES...
|
#include <SDL2/SDL_scancode.h> // for SDL_SCANCODE_A, SDL_SCANCODE_ES...
|
||||||
#include <SDL2/SDL_stdinc.h> // for Uint32
|
#include <SDL2/SDL_stdinc.h> // for Uint32
|
||||||
|
#include <SDL2/SDL_mouse.h> // Para SDL_ShowCursor
|
||||||
#include <SDL2/SDL_timer.h> // for SDL_GetTicks
|
#include <SDL2/SDL_timer.h> // for SDL_GetTicks
|
||||||
#include <errno.h> // for errno, EEXIST, EACCES, ENAMETOO...
|
#include <errno.h> // for errno, EEXIST, EACCES, ENAMETOO...
|
||||||
#include <stdio.h> // for printf, perror
|
#include <stdio.h> // for printf, perror
|
||||||
@@ -83,6 +84,7 @@ Director::Director(int argc, const char *argv[])
|
|||||||
initInput();
|
initInput();
|
||||||
Debug::init();
|
Debug::init();
|
||||||
Cheevos::init(Asset::get()->get("cheevos.bin"));
|
Cheevos::init(Asset::get()->get("cheevos.bin"));
|
||||||
|
SDL_ShowCursor(SDL_DISABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Director::~Director()
|
Director::~Director()
|
||||||
|
|||||||
@@ -103,8 +103,8 @@ void Game::checkInput()
|
|||||||
// Bucle para el juego
|
// Bucle para el juego
|
||||||
void Game::run()
|
void Game::run()
|
||||||
{
|
{
|
||||||
JA_PlayMusic(Resource::get()->getMusic("game.ogg"));
|
keepMusicPlaying();
|
||||||
if (!board_->music)
|
if (!board_->music && mode_ == GameMode::GAME)
|
||||||
{
|
{
|
||||||
JA_PauseMusic();
|
JA_PauseMusic();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user