Añadidas nuevas funciones al botón de servicio
El botón de servicio se puede usar en cualquier sección del juego
This commit is contained in:
@@ -319,21 +319,21 @@ void Screen::update()
|
||||
void Screen::checkInput()
|
||||
{
|
||||
#ifndef ARCADE
|
||||
if (input->checkInput(input_window_fullscreen, DO_NOT_ALLOW_REPEAT))
|
||||
if (input->checkInput(input_window_fullscreen, INPUT_DO_NOT_ALLOW_REPEAT))
|
||||
{
|
||||
switchVideoMode();
|
||||
const std::string mode = options->video.mode == SCREEN_VIDEO_MODE_WINDOW ? "Window" : "Fullscreen";
|
||||
showNotification(mode + " mode");
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_window_dec_size, DO_NOT_ALLOW_REPEAT))
|
||||
else if (input->checkInput(input_window_dec_size, INPUT_DO_NOT_ALLOW_REPEAT))
|
||||
{
|
||||
decWindowSize();
|
||||
const std::string size = std::to_string(options->video.window.size);
|
||||
showNotification("Window size x" + size);
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_window_inc_size, DO_NOT_ALLOW_REPEAT))
|
||||
else if (input->checkInput(input_window_inc_size, INPUT_DO_NOT_ALLOW_REPEAT))
|
||||
{
|
||||
incWindowSize();
|
||||
const std::string size = std::to_string(options->video.window.size);
|
||||
@@ -341,12 +341,12 @@ void Screen::checkInput()
|
||||
}
|
||||
#endif
|
||||
|
||||
if (input->checkInput(input_video_shaders, DO_NOT_ALLOW_REPEAT))
|
||||
if (input->checkInput(input_video_shaders, INPUT_DO_NOT_ALLOW_REPEAT))
|
||||
{
|
||||
switchShaders();
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_showinfo, DO_NOT_ALLOW_REPEAT))
|
||||
else if (input->checkInput(input_showinfo, INPUT_DO_NOT_ALLOW_REPEAT))
|
||||
{
|
||||
showInfo = !showInfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user