en el mode quiosc s'ignora la pulsació d'F1, F2 i F3 i a mes comença en mode de pantalla completa

This commit is contained in:
2026-03-08 22:43:47 +01:00
parent 8d9c838be2
commit 852cda1984
4 changed files with 20 additions and 11 deletions

2
.gitignore vendored
View File

@@ -21,3 +21,5 @@ resources.pack
jdd_release/ jdd_release/
tools/pack_resources/pack_resources tools/pack_resources/pack_resources
tools/pack_resources/pack_resources.exe tools/pack_resources/pack_resources.exe
tools/pack_resources/pack_tool
tools/pack_resources/pack_tool.exe

View File

@@ -141,14 +141,16 @@ auto getPressedAction() -> InputAction {
if (Input::get()->checkAction(InputAction::TOGGLE_BORDER, Input::DO_NOT_ALLOW_REPEAT)) { if (Input::get()->checkAction(InputAction::TOGGLE_BORDER, Input::DO_NOT_ALLOW_REPEAT)) {
return InputAction::TOGGLE_BORDER; return InputAction::TOGGLE_BORDER;
} }
if (Input::get()->checkAction(InputAction::TOGGLE_FULLSCREEN, Input::DO_NOT_ALLOW_REPEAT)) { if (!Options::kiosk.enabled) {
return InputAction::TOGGLE_FULLSCREEN; if (Input::get()->checkAction(InputAction::TOGGLE_FULLSCREEN, Input::DO_NOT_ALLOW_REPEAT)) {
} return InputAction::TOGGLE_FULLSCREEN;
if (Input::get()->checkAction(InputAction::WINDOW_DEC_ZOOM, Input::DO_NOT_ALLOW_REPEAT)) { }
return InputAction::WINDOW_DEC_ZOOM; if (Input::get()->checkAction(InputAction::WINDOW_DEC_ZOOM, Input::DO_NOT_ALLOW_REPEAT)) {
} return InputAction::WINDOW_DEC_ZOOM;
if (Input::get()->checkAction(InputAction::WINDOW_INC_ZOOM, Input::DO_NOT_ALLOW_REPEAT)) { }
return InputAction::WINDOW_INC_ZOOM; if (Input::get()->checkAction(InputAction::WINDOW_INC_ZOOM, Input::DO_NOT_ALLOW_REPEAT)) {
return InputAction::WINDOW_INC_ZOOM;
}
} }
if (Input::get()->checkAction(InputAction::TOGGLE_SHADERS, Input::DO_NOT_ALLOW_REPEAT)) { if (Input::get()->checkAction(InputAction::TOGGLE_SHADERS, Input::DO_NOT_ALLOW_REPEAT)) {
return InputAction::TOGGLE_SHADERS; return InputAction::TOGGLE_SHADERS;

View File

@@ -122,6 +122,11 @@ Director::Director(std::vector<std::string> const& args) {
Options::setConfigFile(Resource::List::get()->get("config.yaml")); Options::setConfigFile(Resource::List::get()->get("config.yaml"));
Options::loadFromFile(); Options::loadFromFile();
// En mode quiosc, forçar pantalla completa independentment de la configuració
if (Options::kiosk.enabled) {
Options::video.fullscreen = true;
}
// Inicializa JailAudio // Inicializa JailAudio
Audio::init(); Audio::init();

View File

@@ -100,7 +100,7 @@ namespace Game {
namespace Room { namespace Room {
#ifdef _DEBUG #ifdef _DEBUG
constexpr const char* INITIAL = "03.yaml"; // Habitación de inicio en debug constexpr const char* INITIAL = "51.yaml"; // Habitación de inicio en debug
#else #else
constexpr const char* INITIAL = "03.yaml"; // Habitación de inicio en release constexpr const char* INITIAL = "03.yaml"; // Habitación de inicio en release
#endif #endif
@@ -109,7 +109,7 @@ namespace Room {
namespace Player { namespace Player {
#ifdef _DEBUG #ifdef _DEBUG
constexpr int SPAWN_X = 26 * Tile::SIZE; // Posición X inicial en debug constexpr int SPAWN_X = 26 * Tile::SIZE; // Posición X inicial en debug
constexpr int SPAWN_Y = 13 * Tile::SIZE; // Posición Y inicial en debug constexpr int SPAWN_Y = 10 * Tile::SIZE; // Posición Y inicial en debug
constexpr SDL_FlipMode SPAWN_FLIP = Flip::LEFT; // Orientación inicial en debug constexpr SDL_FlipMode SPAWN_FLIP = Flip::LEFT; // Orientación inicial en debug
#else #else
constexpr int SPAWN_X = 25 * Tile::SIZE; // Posición X inicial en release constexpr int SPAWN_X = 25 * Tile::SIZE; // Posición X inicial en release