Ja dibuixa la tarjeta amb la ajuda per als botons de servei

This commit is contained in:
2024-10-01 20:58:05 +02:00
parent 3cabd5c675
commit 3a84ea792c
5 changed files with 222 additions and 29 deletions

View File

@@ -1,12 +1,13 @@
#include "global_inputs.h"
#include <string> // for basic_string, operator+
#include "input.h" // for Input, inputs_e, INPUT_DO_NOT_ALLOW_REPEAT
#include "jail_audio.h" // for JA_EnableMusic, JA_EnableSound
#include "lang.h" // for getText
#include "options.h" // for options
#include "screen.h" // for Screen
#include "section.h" // for options_e, name, name_e, options
#include "utils.h" // for op_audio_t, options_t, op_music_t, boolToOnOff
#include <string> // for basic_string, operator+
#include "input.h" // for Input, inputs_e, INPUT_DO_NOT_ALLOW_REPEAT
#include "jail_audio.h" // for JA_EnableMusic, JA_EnableSound
#include "lang.h" // for getText
#include "options.h" // for options
#include "on_screen_help.h"
#include "screen.h" // for Screen
#include "section.h" // for options_e, name, name_e, options
#include "utils.h" // for op_audio_t, options_t, op_music_t, boolToOnOff
// Termina
void quit(section::options_e code)
@@ -61,6 +62,12 @@ void checkGlobalInputs()
return;
}
else if (Input::get()->checkInput(input_service, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_KEYBOARD))
{
OnScreenHelp::get()->toggleState();
return;
}
for (int i = 0; i < Input::get()->getNumControllers(); ++i)
{
// Comprueba si se sale con el mando