Afegida tecla per a canviar el integer scale
This commit is contained in:
@@ -238,6 +238,14 @@ namespace globalInputs
|
||||
return;
|
||||
}
|
||||
|
||||
if (Input::get()->checkInput(InputType::VIDEO_INTEGER_SCALE, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD))
|
||||
{
|
||||
options.video.integer_scale = !options.video.integer_scale;
|
||||
SDL_RenderSetIntegerScale(Screen::get()->getRenderer(), options.video.integer_scale ? SDL_TRUE : SDL_FALSE);
|
||||
Screen::get()->setVideoMode();
|
||||
Notifier::get()->show({"Integer scale " + std::string(options.video.integer_scale ? "on" : "off")});
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
// Comprueba el teclado para mostrar la información de debug
|
||||
if (Input::get()->checkInput(InputType::SHOWINFO, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD))
|
||||
|
||||
Reference in New Issue
Block a user