From bc0c3ff88a09e2e7438786cfcfed1b1bc3b133fc Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Wed, 17 Jan 2024 13:49:24 +0900 Subject: [PATCH] don't use HIDAPI for bluetooth controller from Nintendo --- CMakeLists.txt | 2 +- src/app/app.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93a9bcff5..1313af846 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,7 +132,7 @@ set(BUILD_SHARED_CORE_LIBS OFF) if (TARGET_WEBOS) set(CMAKE_INSTALL_LIBDIR lib/backports) - set(SDL2_BACKPORT_REVISION "a18683eded16fa4590c418068b68f195b5de7124") + set(SDL2_BACKPORT_REVISION "c09bcf19e0839c86278b688d49b649399111f80c") include(ExternalSDL2BackportForWebOS) unset(CMAKE_INSTALL_LIBDIR) else () diff --git a/src/app/app.c b/src/app/app.c index 24606aec9..618f42447 100644 --- a/src/app/app.c +++ b/src/app/app.c @@ -63,6 +63,7 @@ int app_init(app_t *app, app_settings_loader *settings_loader, int argc, char *a SDL_SetHint(SDL_HINT_WEBOS_CURSOR_SLEEP_TIME, "5000"); SDL_SetHint(SDL_HINT_WEBOS_CURSOR_FREQUENCY, "60"); SDL_SetHint(SDL_HINT_WEBOS_CURSOR_CALIBRATION_DISABLE, "true"); + SDL_SetHint(SDL_HINT_WEBOS_HIDAPI_IGNORE_BLUETOOTH_DEVICES, "0x057e/0x0000"); #endif // DO not init video subsystem before NDL/LGNC initialization if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) {