Varios arreglos

This commit is contained in:
2024-11-03 20:28:01 +01:00
parent f29eb2f411
commit 371c477d0d
18 changed files with 168 additions and 202 deletions

View File

@@ -1,13 +1,14 @@
#pragma once
#include <SDL2/SDL_events.h> // para SDL_ControllerButtonEvent
#include <SDL2/SDL_gamecontroller.h> // para SDL_GameControllerButton
#include <memory> // para shared_ptr, unique_ptr
#include <string> // para string
#include <vector> // para vector
class Input;
class Text;
enum class InputType : int;
#include <SDL2/SDL_events.h> // Para SDL_ControllerButtonEvent
#include <SDL2/SDL_gamecontroller.h> // Para SDL_GameControllerButton
#include <stddef.h> // Para size_t
#include <memory> // Para shared_ptr, unique_ptr
#include <string> // Para string
#include <vector> // Para vector
class Input; // lines 8-8
class Text; // lines 9-9
enum class InputType : int; // lines 10-10
struct DefineButtonsButton
{
@@ -41,7 +42,7 @@ private:
void incIndexButton();
// Comprueba el botón que se ha pulsado
void doControllerButtonDown(SDL_ControllerButtonEvent &event);
void doControllerButtonDown(const SDL_ControllerButtonEvent &event);
// Asigna los botones definidos al input
void bindButtons();