From 3e0228396775d2cefc2b548ac671f7c8f61ace2d Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Mon, 24 Aug 2026 01:33:24 -0400 Subject: [PATCH] cxb: touch emulation --- games/cxbhook/config.c | 1 + games/cxbhook/config.h | 3 +++ games/cxbhook/dllmain.c | 3 +++ 3 files changed, 7 insertions(+) diff --git a/games/cxbhook/config.c b/games/cxbhook/config.c index 9294d1e..600d2e0 100644 --- a/games/cxbhook/config.c +++ b/games/cxbhook/config.c @@ -71,4 +71,5 @@ void cxb_hook_config_load( cxb_dll_config_load(&cfg->dll, filename); revio_config_load(&cfg->revio, filename); led_config_load(&cfg->led, filename); + touch_screen_config_load(&cfg->touch, filename); } diff --git a/games/cxbhook/config.h b/games/cxbhook/config.h index 4c7d3af..81a5e16 100644 --- a/games/cxbhook/config.h +++ b/games/cxbhook/config.h @@ -11,6 +11,8 @@ #include "cxbhook/revio.h" #include "cxbhook/led.h" +#include "hooklib/touch.h" + #include "gfxhook/gfx.h" #include "platform/platform.h" @@ -23,6 +25,7 @@ struct cxb_hook_config { struct cxb_dll_config dll; struct revio_config revio; struct led_config led; + struct touch_screen_config touch; }; void cxb_dll_config_load( diff --git a/games/cxbhook/dllmain.c b/games/cxbhook/dllmain.c index fd6f4e0..1a53553 100644 --- a/games/cxbhook/dllmain.c +++ b/games/cxbhook/dllmain.c @@ -19,6 +19,7 @@ #include "hooklib/serial.h" #include "hooklib/spike.h" +#include "hooklib/touch.h" #include "platform/platform.h" @@ -114,6 +115,8 @@ static DWORD CALLBACK cxb_pre_startup(void) goto fail; } + touch_screen_hook_init(&cxb_hook_cfg.touch, cxb_hook_mod); + /* Initialize debug helpers */ spike_hook_init(get_config_path());