removed sdl_init_gamecontroller flag from init

the app will not be usable with a gamecontroller so it is unnecesary to
initialize it
This commit is contained in:
2026-03-09 14:37:51 +01:00
parent 36673177ad
commit f844b8149f

View File

@@ -10,7 +10,6 @@ WindowData Application::m_WindowData;
bool Application::m_isRunning = false;
Application::Application() : m_Renderer(nullptr) {}
Application::~Application() { Shutdown(); }
bool Application::Init() {
@@ -22,7 +21,7 @@ bool Application::Init() {
LOG_INFO("window width: {0}, height: {1}", GetWindowData().width, GetWindowData().height);
// Init sdl
if (SDL_Init(SDL_INIT_VIDEO /*| SDL_INIT_GAMECONTROLLER*/) < 0) {
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
LOG_ERROR("SDL could not be initialized! {0}", SDL_GetError());
Shutdown();
return false;