working on game controller input
This commit is contained in:
@@ -15,8 +15,10 @@ Input::Input(int source)
|
||||
mGameControllerBindings[i].active = false;
|
||||
}
|
||||
|
||||
mGameControllerFound = false;
|
||||
|
||||
// Comprueba si hay algún mando conectado
|
||||
discoverGameController();
|
||||
//discoverGameController();
|
||||
|
||||
// En caso de haber un mando, el objeto se puede utilizar con entradas de mando
|
||||
if (mGameControllerFound)
|
||||
@@ -186,6 +188,7 @@ bool Input::checkInput(Uint8 input, bool repeat)
|
||||
// Comprueba si hay un mando conectado
|
||||
bool Input::discoverGameController()
|
||||
{
|
||||
|
||||
printf("%i joystics found", SDL_NumJoysticks());
|
||||
for (int i = 0; i < SDL_NumJoysticks(); ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user