2023-09-18 10:05:22 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include "saoio/saoio.h"
|
|
|
|
|
|
|
|
struct sao_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);
|
2024-04-23 03:11:03 +02:00
|
|
|
void (*get_gamebtns)(uint8_t *gamebtns);
|
|
|
|
void (*get_analog)(uint8_t *x, uint8_t *y);
|
2023-09-18 10:05:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct sao_dll_config {
|
|
|
|
wchar_t path[MAX_PATH];
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct sao_dll sao_dll;
|
|
|
|
|
|
|
|
HRESULT sao_dll_init(const struct sao_dll_config *cfg, HINSTANCE self);
|