migrant input: commit abans que gemini destroçe algo
This commit is contained in:
@@ -27,10 +27,10 @@ class DefineButtons {
|
||||
DefineButtons();
|
||||
~DefineButtons() = default;
|
||||
|
||||
void render(); // Dibuja el objeto en pantalla
|
||||
void checkEvents(const SDL_Event &event); // Procesa los eventos
|
||||
auto enable(std::shared_ptr<Options::Gamepad> gamepad_options) -> bool; // Habilita la redefinición de botones
|
||||
[[nodiscard]] auto isEnabled() const -> bool { return enabled_; }; // Comprueba si está habilitado
|
||||
void render(); // Dibuja el objeto en pantalla
|
||||
void checkEvents(const SDL_Event &event); // Procesa los eventos
|
||||
auto enable(Options::Gamepad *gamepad) -> bool; // Habilita la redefinición de botones
|
||||
[[nodiscard]] auto isEnabled() const -> bool { return enabled_; }; // Comprueba si está habilitado
|
||||
|
||||
private:
|
||||
// Objetos
|
||||
@@ -38,12 +38,13 @@ class DefineButtons {
|
||||
|
||||
// Variables
|
||||
bool enabled_ = false; // Indica si está activo
|
||||
int x_ = 0, y_ = 0; // Coordenadas de texto
|
||||
bool finished_ = false; // Indica si ha terminado
|
||||
int x_ = 0; // Coordenadas de texto
|
||||
int y_ = 0; // Coordenadas de texto
|
||||
std::vector<Button> buttons_; // Definiciones de botones
|
||||
size_t index_button_ = 0; // Índice del botón en proceso
|
||||
std::vector<std::string> controller_names_; // Nombres de los mandos
|
||||
bool finished_ = false;
|
||||
std::shared_ptr<Options::Gamepad> gamepad_options_;
|
||||
Options::Gamepad *gamepad_;
|
||||
|
||||
// Métodos internos
|
||||
void incIndexButton(); // Incrementa el índice de botones
|
||||
|
||||
Reference in New Issue
Block a user