From e94f12bd17ee7e9fe8de69a1ae7c019c56a4a89f Mon Sep 17 00:00:00 2001 From: Tenith01 Date: Wed, 7 Oct 2026 10:07:21 +0530 Subject: [PATCH] fix(videoout): disable DirectInput joystick enumeration on Windows --- core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp b/core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp index 5b3dcdc23..3da668b1c 100644 --- a/core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp +++ b/core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp @@ -259,6 +259,9 @@ VideoOutDriver& VideoOutDriver::Get() { VideoOutDriver::VideoOutDriver() { SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2"); +#ifdef _WIN32 + SDL_SetHintWithPriority(SDL_HINT_DIRECTINPUT_ENABLED, "0", SDL_HINT_DEFAULT); +#endif if (SDL_InitSubSystem(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER) < 0) { throw std::runtime_error(std::string("SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: ") + SDL_GetError()); }