treball en curs: correccions de tidy

This commit is contained in:
2026-05-16 15:49:21 +02:00
parent 18cd287808
commit 3421f34a84
18 changed files with 658 additions and 651 deletions
+4 -5
View File
@@ -3,7 +3,6 @@
#include <SDL3/SDL.h>
#include <string> // for string, basic_string
#include <vector> // for vector
// Dificultad del juego
constexpr int DIFFICULTY_EASY = 0;
@@ -63,17 +62,17 @@ struct Section {
struct DemoKeys {
Uint8 left;
Uint8 right;
Uint8 noInput;
Uint8 no_input;
Uint8 fire;
Uint8 fireLeft;
Uint8 fireRight;
Uint8 fire_left;
Uint8 fire_right;
};
// Estructura para albergar métodos de control
struct InputDevice {
int id; // Identificador en el vector de mandos
std::string name; // Nombre del dispositivo
Uint8 deviceType; // Tipo de dispositivo (teclado o mando)
Uint8 device_type; // Tipo de dispositivo (teclado o mando)
};
// Calcula el cuadrado de la distancia entre dos puntos