cxb: touch emulation

This commit is contained in:
Hay1tsme
2026-08-24 01:33:24 -04:00
parent 6d2078f966
commit 3e02283967
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -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);
}
+3
View File
@@ -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(
+3
View File
@@ -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());