24 lines
548 B
C
24 lines
548 B
C
|
#pragma once
|
||
|
|
||
|
#include <windows.h>
|
||
|
|
||
|
#include "kizunaio/kizunaio.h"
|
||
|
|
||
|
struct kizuna_dll {
|
||
|
uint16_t api_version;
|
||
|
HRESULT (*init)(void);
|
||
|
HRESULT (*poll)(void);
|
||
|
void (*read_coin_counter)(uint16_t *coins, uint16_t *services);
|
||
|
void (*get_opbtns)(uint8_t *opbtn);
|
||
|
void (*get_gamebtns)(uint8_t *gamebtns);
|
||
|
void (*get_analog)(uint8_t *x, uint8_t *y);
|
||
|
};
|
||
|
|
||
|
struct kizuna_dll_config {
|
||
|
wchar_t path[MAX_PATH];
|
||
|
};
|
||
|
|
||
|
extern struct kizuna_dll kizuna_dll;
|
||
|
|
||
|
HRESULT kizuna_dll_init(const struct kizuna_dll_config *cfg, HINSTANCE self);
|