forked from TeamTofuShop/segatools
swdc: first segatools added
This commit is contained in:
22
swdchook/swdc-dll.h
Normal file
22
swdchook/swdc-dll.h
Normal file
@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include "swdcio/swdcio.h"
|
||||
|
||||
struct swdc_dll {
|
||||
uint16_t api_version;
|
||||
HRESULT (*init)(void);
|
||||
HRESULT (*poll)(void);
|
||||
void (*get_opbtns)(uint8_t *opbtn);
|
||||
void (*get_gamebtns)(uint16_t *gamebtn);
|
||||
void (*get_analogs)(struct swdc_io_analog_state *out);
|
||||
};
|
||||
|
||||
struct swdc_dll_config {
|
||||
wchar_t path[MAX_PATH];
|
||||
};
|
||||
|
||||
extern struct swdc_dll swdc_dll;
|
||||
|
||||
HRESULT swdc_dll_init(const struct swdc_dll_config *cfg, HINSTANCE self);
|
Reference in New Issue
Block a user