1
0
mirror of https://gitea.tendokyu.moe/Hay1tsme/segatools.git synced 2024-11-11 20:37:09 +01:00
segatools-hay1tsme/mercuryhook/mercury-dll.h
2023-02-13 03:08:40 -05:00

26 lines
614 B
C

#pragma once
#include <windows.h>
#include "mercuryio/mercuryio.h"
#include "mercuryhook/elisabeth.h"
struct mercury_dll {
uint16_t api_version;
HRESULT (*init)(void);
HRESULT (*poll)(void);
void (*get_opbtns)(uint8_t *opbtn);
void (*get_gamebtns)(uint8_t *gamebtn);
HRESULT (*touch_init)(void);
void (*touch_start)(mercury_io_touch_callback_t callback);
void (*set_leds)(struct led_data data);
};
struct mercury_dll_config {
wchar_t path[MAX_PATH];
};
extern struct mercury_dll mercury_dll;
HRESULT mercury_dll_init(const struct mercury_dll_config *cfg, HINSTANCE self);