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
This commit is contained in:
bicarus
2026-08-02 16:46:33 -07:00
committed by GitHub
parent 435b9ce9aa
commit f955ab984c
+2 -3
View File
@@ -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