mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-11-30 23:57:15 +01:00
22 lines
435 B
C
22 lines
435 B
C
|
#pragma once
|
||
|
|
||
|
#include <windows.h>
|
||
|
|
||
|
#include "mai2io/mai2io.h"
|
||
|
|
||
|
struct mai2_dll {
|
||
|
uint16_t api_version;
|
||
|
HRESULT (*init)(void);
|
||
|
HRESULT (*poll)(void);
|
||
|
void (*get_opbtns)(uint8_t *opbtn);
|
||
|
void (*get_gamebtns)(uint16_t *player1, uint16_t *player2);
|
||
|
};
|
||
|
|
||
|
struct mai2_dll_config {
|
||
|
wchar_t path[MAX_PATH];
|
||
|
};
|
||
|
|
||
|
extern struct mai2_dll mai2_dll;
|
||
|
|
||
|
HRESULT mai2_dll_init(const struct mai2_dll_config *cfg, HINSTANCE self);
|