mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2025-01-08 15:11:33 +01:00
32 lines
928 B
C
32 lines
928 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
#include "idzio/idzio.h"
|
|
|
|
struct idz_dll {
|
|
uint16_t api_version;
|
|
HRESULT (*jvs_init)(void);
|
|
void (*jvs_read_analogs)(struct idz_io_analog_state *out);
|
|
void (*jvs_read_buttons)(uint8_t *opbtn, uint8_t *gamebtn);
|
|
void (*jvs_read_shifter)(uint8_t *gear);
|
|
void (*jvs_read_coin_counter)(uint16_t *total);
|
|
HRESULT (*led_init)(void);
|
|
void (*led_set_fet_output)(const uint8_t *rgb);
|
|
void (*led_gs_update)(const uint8_t *rgb);
|
|
void (*led_set_leds)(const uint8_t *rgb);
|
|
HRESULT (*ffb_init)(void);
|
|
void (*ffb_toggle)(bool active);
|
|
void (*ffb_constant_force)(uint8_t direction, uint8_t force);
|
|
void (*ffb_rumble)(uint8_t period, uint8_t force);
|
|
void (*ffb_damper)(uint8_t force);
|
|
};
|
|
|
|
struct idz_dll_config {
|
|
wchar_t path[MAX_PATH];
|
|
};
|
|
|
|
extern struct idz_dll idz_dll;
|
|
|
|
HRESULT idz_dll_init(const struct idz_dll_config *cfg, HINSTANCE self);
|