Varios arreglos
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user