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:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -21,3 +21,5 @@ resources.pack
|
||||
jdd_release/
|
||||
tools/pack_resources/pack_resources
|
||||
tools/pack_resources/pack_resources.exe
|
||||
tools/pack_resources/pack_tool
|
||||
tools/pack_resources/pack_tool.exe
|
||||
|
||||
@@ -141,6 +141,7 @@ auto getPressedAction() -> InputAction {
|
||||
if (Input::get()->checkAction(InputAction::TOGGLE_BORDER, Input::DO_NOT_ALLOW_REPEAT)) {
|
||||
return InputAction::TOGGLE_BORDER;
|
||||
}
|
||||
if (!Options::kiosk.enabled) {
|
||||
if (Input::get()->checkAction(InputAction::TOGGLE_FULLSCREEN, Input::DO_NOT_ALLOW_REPEAT)) {
|
||||
return InputAction::TOGGLE_FULLSCREEN;
|
||||
}
|
||||
@@ -150,6 +151,7 @@ auto getPressedAction() -> InputAction {
|
||||
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)) {
|
||||
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::loadFromFile();
|
||||
|
||||
// En mode quiosc, forçar pantalla completa independentment de la configuració
|
||||
if (Options::kiosk.enabled) {
|
||||
Options::video.fullscreen = true;
|
||||
}
|
||||
|
||||
// Inicializa JailAudio
|
||||
Audio::init();
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace Game {
|
||||
|
||||
namespace Room {
|
||||
#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
|
||||
constexpr const char* INITIAL = "03.yaml"; // Habitación de inicio en release
|
||||
#endif
|
||||
@@ -109,7 +109,7 @@ namespace Room {
|
||||
namespace Player {
|
||||
#ifdef _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
|
||||
#else
|
||||
constexpr int SPAWN_X = 25 * Tile::SIZE; // Posición X inicial en release
|
||||
|
||||
Reference in New Issue
Block a user