From 09cee7912279a7918024b6a8588430c10d879939 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 24 Aug 2021 20:28:27 +0200 Subject: [PATCH] working on game controller input --- source/director.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/director.cpp b/source/director.cpp index 7b0d513..09ddf10 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -125,7 +125,8 @@ bool Director::initSDL() bool success = true; // Inicializa SDL - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER| SDL_INIT_AUDIO | SDL_INIT_HAPTIC) < 0) + //if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER| SDL_INIT_AUDIO | SDL_INIT_HAPTIC) < 0) + if (SDL_Init(SDL_INIT_EVERYTHING) < 0) { printf("SDL could not initialize!\nSDL Error: %s\n", SDL_GetError()); success = false; @@ -133,7 +134,7 @@ bool Director::initSDL() else { SDL_JoystickEventState(SDL_ENABLE); - + // Establece el filtro de la textura a nearest if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "0")) {