## Link to GitHub Issue or related Pull Request, if one exists #0 ## Description of change Fix mouse and touch API handling for gitadora. * hook native touch in every arena window mode (previously only using wintouchemu for 1 windowed mode) * publish the touch window (SMALL panel, or the main window drawing the overlay) and only attach injection there * route touch on the SMALL window straight through instead of the overlay transform, and accept the mouse only there * fix spiceapi by forcing 800x1280 touch canvas size * run API capture before the subscreen present to fix api not showing sub image ## Testing Test: gitadora 1/2/4 windowed mode, fullscreen iidx /sdvx / popn windowed/fullscreen for regressions
17 lines
505 B
C++
17 lines
505 B
C++
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
struct tagTOUCHINPUT;
|
|
|
|
namespace nativetouch::inject {
|
|
void attach_window(HWND window);
|
|
void register_and_attach_window(HWND window);
|
|
void set_preferred_injection_window(HWND window);
|
|
bool hook_available(HMODULE module);
|
|
bool hook(HMODULE module);
|
|
bool inject_synthetic_touch(POINT position, bool down);
|
|
bool inject_synthetic_touch_from_canvas(POINT position, SIZE canvas, bool down);
|
|
bool transform_touch_input(tagTOUCHINPUT *point);
|
|
}
|