From 910fb47692d68041de19f5d75c5d172dd62ceb60 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Sat, 10 Oct 2026 23:20:09 -0400 Subject: [PATCH] fix: the Steam Controller's hidraw node reaches the input shim again (#557) --- app/src/main/cpp/fakeinput_steam.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/cpp/fakeinput_steam.cpp b/app/src/main/cpp/fakeinput_steam.cpp index 64b6ddec..0e8ff8a2 100644 --- a/app/src/main/cpp/fakeinput_steam.cpp +++ b/app/src/main/cpp/fakeinput_steam.cpp @@ -1697,6 +1697,7 @@ __attribute__((visibility("hidden"))) static int open_triton_hidraw(int flags) { { std::lock_guard guard(controller_mutex()); deck_map()[pair[0]] = triton; + watch_fd(pair[0]); } pthread_t thread; auto *thread_arg = new std::shared_ptr(triton); @@ -1704,6 +1705,7 @@ __attribute__((visibility("hidden"))) static int open_triton_hidraw(int flags) { delete thread_arg; std::lock_guard guard(controller_mutex()); deck_map().erase(pair[0]); + unwatch_fd(pair[0]); syscall(SYS_close, pair[0]); syscall(SYS_close, pair[1]); munmap(mapping, mapping_size);