1
0
mirror of https://gitea.tendokyu.moe/Hay1tsme/segatools.git synced 2025-01-24 07:04:08 +01:00

32 lines
590 B
C
Raw Normal View History

2022-01-04 03:46:30 -05:00
#pragma once
#include <windows.h>
#include <stdbool.h>
struct touch_config {
bool enable;
};
2022-01-05 02:03:55 -05:00
enum touch_cmd {
CMD_GET_REV_DATE = 0xa0,
CMD_STARTUP = 0x72,
CMD_GET_REV_DATE_DETAIL = 0xa8,
CMD_UNKNOWN1 = 0xa2,
CMD_UNKNOWN2 = 0x94,
CMD_START_AUTO = 0xc9
};
struct touch_req {
int side;
int cmd; // First byte is the command byte
int data[256]; // rest of the data goes here
int data_length; // Size of the data including command byte
};
struct touch_input_frame {
int data[36];
};
2022-01-04 03:46:30 -05:00
HRESULT touch_hook_init(const struct touch_config *cfg);