1
0
mirror of https://gitea.tendokyu.moe/Hay1tsme/segatools.git synced 2024-12-12 16:21:04 +01:00
segatools-hay1tsme/mu3hook/mu3-dll.h
2021-06-13 11:27:01 -04:00

23 lines
457 B
C

#pragma once
#include <windows.h>
#include "mu3io/mu3io.h"
struct mu3_dll {
uint16_t api_version;
HRESULT (*init)(void);
HRESULT (*poll)(void);
void (*get_opbtns)(uint8_t *opbtn);
void (*get_gamebtns)(uint8_t *left, uint8_t *right);
void (*get_lever)(int16_t *pos);
};
struct mu3_dll_config {
wchar_t path[MAX_PATH];
};
extern struct mu3_dll mu3_dll;
HRESULT mu3_dll_init(const struct mu3_dll_config *cfg, HINSTANCE self);