working on text notifications

This commit is contained in:
2021-08-27 22:40:48 +02:00
parent aac11d05aa
commit 3f53ba333b
15 changed files with 263 additions and 320 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "ifdefs.h"
#include <vector>
#ifndef INPUT_H
#define INPUT_H
@@ -25,8 +26,8 @@
#define REPEAT_TRUE true
#define REPEAT_FALSE false
#define USE_KEYBOARD 0
#define USE_GAMECONTROLLER 1
#define INPUT_USE_KEYBOARD 0
#define INPUT_USE_GAMECONTROLLER 1
// Clase Input
class Input
@@ -47,8 +48,9 @@ private:
GameControllerBindings_t mGameControllerBindings[17]; // Vector con las teclas asociadas a los inputs predefinidos
SDL_GameController *mGameController; // Manejador para el mando
//SDL_Haptic *mControllerHaptic; // Manejador para el mando con vibración
//bool mGameControllerFound; // Variable para saber si hay un mando conectado
std::vector<SDL_GameController*> mConnectedControllers;
int mNumGamepads;
int mSource; // Indica si el objeto usará un mando o un teclado