forked from TeamTofuShop/segatools
carol: add touch dll functions
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
struct touch_config {
|
||||
bool enable;
|
||||
};
|
||||
@ -16,4 +18,21 @@ struct touch_req {
|
||||
size_t data_len; // length of data
|
||||
};
|
||||
|
||||
struct touch_report {
|
||||
uint8_t status;
|
||||
uint8_t touch_id;
|
||||
uint16_t x;
|
||||
uint16_t y;
|
||||
};
|
||||
|
||||
struct touch_auto_resp {
|
||||
uint8_t rep_id;
|
||||
struct touch_report touches[10];
|
||||
uint8_t count;
|
||||
uint16_t scan_time;
|
||||
//uint8_t padding[456];
|
||||
};
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
HRESULT touch_hook_init(const struct touch_config *cfg);
|
Reference in New Issue
Block a user