1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2024-11-28 06:50:49 +01:00
segatools-dniel97/tokyohook/tokyo-dll.h
2024-08-20 13:32:35 +02:00

25 lines
564 B
C

#pragma once
#include <windows.h>
#include "tokyoio/tokyoio.h"
struct tokyo_dll {
uint16_t api_version;
HRESULT (*init)(void);
void (*get_opbtns)(uint8_t *opbtn);
void (*get_gamebtns)(uint8_t *gamebtn);
void (*get_sensors)(uint8_t *sense);
HRESULT (*gpio_out)(uint32_t state);
HRESULT (*led_init)(void);
void (*led_set_leds)(uint8_t board, uint8_t *rgb);
};
struct tokyo_dll_config {
wchar_t path[MAX_PATH];
};
extern struct tokyo_dll tokyo_dll;
HRESULT tokyo_dll_init(const struct tokyo_dll_config *cfg, HINSTANCE self);