Start to work on dual input for P1

This commit is contained in:
2021-08-29 19:54:18 +02:00
parent 4de3d69bb8
commit 02b528ea8c
12 changed files with 110 additions and 48 deletions

View File

@@ -54,6 +54,9 @@ private:
int mSource; // Indica si el objeto usará un mando o un teclado
// Comprueba si hay un mando conectado
bool discoverGameController();
public:
// Constructor
Input(int source);
@@ -70,8 +73,8 @@ public:
// Comprueba si un input esta activo
bool checkInput(Uint8 input, bool repeat);
// Comprueba si hay un mando conectado
bool discoverGameController();
// Establece el método de entrada
void setSource(Uint8 value);
};
#endif