Skip to content

Commit

Permalink
don't use HIDAPI for bluetooth controller from Nintendo
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Jan 17, 2024
1 parent 9df8a71 commit bc0c3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down
1 change: 1 addition & 0 deletions src/app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bc0c3ff

Please sign in to comment.