Afegida tecla per a canviar el escalat sencer

This commit is contained in:
2025-03-08 10:54:44 +01:00
parent d4e3995d71
commit fdb85ac393
5 changed files with 20 additions and 8 deletions

View File

@@ -77,6 +77,7 @@ Director::Director(int argc, const char *argv[])
// Crea los objetos
Screen::init(window_, renderer_);
SDL_ShowCursor(SDL_DISABLE);
Resource::init();
Notifier::init("", "8bithud");
Screen::get()->setNotificationsEnabled(true);
@@ -84,7 +85,6 @@ Director::Director(int argc, const char *argv[])
initInput();
Debug::init();
Cheevos::init(Asset::get()->get("cheevos.bin"));
SDL_ShowCursor(SDL_DISABLE);
}
Director::~Director()
@@ -247,6 +247,7 @@ void Director::initInput()
Input::get()->bindKey(InputAction::TOGGLE_SHADERS, SDL_SCANCODE_F4);
Input::get()->bindKey(InputAction::NEXT_PALETTE, SDL_SCANCODE_F5);
Input::get()->bindKey(InputAction::PREVIOUS_PALETTE, SDL_SCANCODE_F6);
Input::get()->bindKey(InputAction::TOGGLE_INTEGER_SCALE, SDL_SCANCODE_F7);
Input::get()->bindKey(InputAction::TOGGLE_MUSIC, SDL_SCANCODE_M);
Input::get()->bindKey(InputAction::TOGGLE_BORDER, SDL_SCANCODE_B);