From f955ab984cbb1ce2f7a591502d9d809a258f2fbf Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Sun, 2 Aug 2026 16:46:33 -0700 Subject: [PATCH] iidx: allow main window to receive touches in windows TDJ subscreen mode (#850) ## Link to GitHub Issue or related Pull Request, if one exists n/a ## Description of change This allows API touches to be recognized even if the main window is in focus. ## Testing --- src/spice2x/touch/native/inject.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/spice2x/touch/native/inject.cpp b/src/spice2x/touch/native/inject.cpp index e009152..ebef28a 100644 --- a/src/spice2x/touch/native/inject.cpp +++ b/src/spice2x/touch/native/inject.cpp @@ -394,11 +394,10 @@ namespace nativetouch::inject { // preserve native registration and attach mouse injection to the touch window static BOOL WINAPI RegisterTouchWindowHook(HWND window, ULONG flags) { - // for TDJ in windowed subscreen mode, the main game window is - // target for delivering touch messages, not the subscreen + // TDJ handles touches on the main window, including contacts that the + // dedicated subscreen forwards there if (GRAPHICS_IIDX_WSUB && window != TDJ_SUBSCREEN_WINDOW) { touch_delivery_window.store(window, std::memory_order_release); - return TRUE; } // call original