segatools/hkbhook/hkb-dll.h

20 lines
351 B
C

#pragma once
#include <windows.h>
#include "hkbio/hkbio.h"
struct hkb_dll {
uint16_t api_version;
HRESULT (*init)(void);
HRESULT (*poll)(uint8_t *opbtn, uint8_t *gamebtn);
};
struct hkb_dll_config {
wchar_t path[MAX_PATH];
};
extern struct hkb_dll hkb_dll;
HRESULT hkb_dll_init(const struct hkb_dll_config *cfg, HINSTANCE self);