2023-11-11 21:47:47 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include "fgoio/fgoio.h"
|
|
|
|
|
|
|
|
struct fgo_dll {
|
|
|
|
uint16_t api_version;
|
|
|
|
HRESULT (*init)(void);
|
|
|
|
HRESULT (*poll)(void);
|
|
|
|
void (*get_opbtns)(uint8_t *opbtn);
|
|
|
|
void (*get_gamebtns)(uint8_t *gamebtn);
|
|
|
|
void (*get_analogs)(int16_t *stick_x, int16_t *stick_y);
|
2023-12-19 11:43:26 +00:00
|
|
|
int (*led_init)();
|
|
|
|
void (*led_set_leds)(uint8_t board, uint8_t *rgb);
|
2023-11-11 21:47:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct fgo_dll_config {
|
|
|
|
wchar_t path[MAX_PATH];
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct fgo_dll fgo_dll;
|
|
|
|
|
|
|
|
HRESULT fgo_dll_init(const struct fgo_dll_config *cfg, HINSTANCE self);
|