Continuem estandaritzant noms
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL2/SDL_events.h> // for SDL_ControllerButtonEvent
|
||||
#include <SDL2/SDL_gamecontroller.h> // for SDL_GameControllerButton
|
||||
#include <string> // for string, basic_string
|
||||
#include <vector> // for vector
|
||||
#include "input.h" // for inputs_e
|
||||
#include <SDL2/SDL_events.h> // for SDL_ControllerButtonEvent
|
||||
#include <SDL2/SDL_gamecontroller.h> // for SDL_GameControllerButton
|
||||
#include <string> // for string, basic_string
|
||||
#include <vector> // for vector
|
||||
#include "input.h" // for inputs_e
|
||||
#include "text.h"
|
||||
#include <memory>
|
||||
|
||||
struct db_button_t
|
||||
struct DefineButtonsButton
|
||||
{
|
||||
std::string label; // Texto en pantalla para el botón
|
||||
inputs_e input; // Input asociado
|
||||
@@ -20,17 +20,17 @@ class DefineButtons
|
||||
{
|
||||
private:
|
||||
// Objetos
|
||||
Input *input; // Objeto pata gestionar la entrada
|
||||
std::shared_ptr<Text> text; // Objeto para escribir texto
|
||||
Input *input_; // Objeto pata gestionar la entrada
|
||||
std::shared_ptr<Text> text_; // Objeto para escribir texto
|
||||
|
||||
// Variables
|
||||
bool enabled; // Indica si el objeto está habilitado
|
||||
int x; // Posición donde dibujar el texto
|
||||
int y; // Posición donde dibujar el texto
|
||||
std::vector<db_button_t> buttons; // Vector con las nuevas definiciones de botones/acciones
|
||||
int indexController; // Indice del controlador a reasignar
|
||||
int indexButton; // Indice para saber qué bot´çon se está definiendo
|
||||
std::vector<std::string> controllerNames; // Nombres de los mandos
|
||||
bool enabled_; // Indica si el objeto está habilitado
|
||||
int x_; // Posición donde dibujar el texto
|
||||
int y_; // Posición donde dibujar el texto
|
||||
std::vector<DefineButtonsButton> buttons_; // Vector con las nuevas definiciones de botones/acciones
|
||||
int index_controller_; // Indice del controlador a reasignar
|
||||
int index_button_; // Indice para saber qué bot´çon se está definiendo
|
||||
std::vector<std::string> controller_names_; // Nombres de los mandos
|
||||
|
||||
// Incrementa el indice de los botones
|
||||
void incIndexButton();
|
||||
|
||||
Reference in New Issue
Block a user