forked from jaildesigner-jailgames/jaildoctors_dilemma
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:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -20,4 +20,6 @@ source/version.h
|
|||||||
resources.pack
|
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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user