1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2025-01-09 15:31:36 +01:00
segatools-dniel97/carolhook/touch.h

19 lines
406 B
C
Raw Normal View History

2022-12-11 04:01:52 +01:00
#pragma once
#include <windows.h>
#include <stdbool.h>
#include <stdint.h>
struct touch_config {
bool enable;
};
// Always starts with 0x01, always ends with 0x0D
2022-12-11 04:01:52 +01:00
struct touch_req {
uint8_t sync; // Always 0x01
uint8_t cmd[256]; // rest of the data goes here
uint8_t tail; // Always 0x0D
size_t data_len; // length of data
2022-12-11 04:01:52 +01:00
};
HRESULT touch_hook_init(const struct touch_config *cfg);