2023-01-03 05:35:53 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include "taikoio/taikoio.h"
|
|
|
|
|
|
|
|
struct taiko_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);
|
2023-07-29 08:51:58 +02:00
|
|
|
void (*get_drum_analog)(uint8_t *gamebtn);
|
2023-01-03 05:35:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct taiko_dll_config {
|
|
|
|
wchar_t path[MAX_PATH];
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct taiko_dll taiko_dll;
|
|
|
|
|
|
|
|
HRESULT taiko_dll_init(const struct taiko_dll_config *cfg, HINSTANCE self);
|