segatools/idacio/backend.h

18 lines
504 B
C
Raw Normal View History

2023-04-23 14:13:51 +00:00
#pragma once
#include <stdint.h>
#include "idacio/idacio.h"
struct idac_io_backend {
2023-06-29 09:24:34 +00:00
void (*get_opbtns)(uint8_t *opbtn);
void (*get_gamebtns)(uint8_t *gamebtn);
void (*get_shifter)(uint8_t *gear);
void (*get_analogs)(struct idac_io_analog_state *state);
2024-09-30 16:50:46 +00:00
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);
2023-04-23 14:13:51 +00:00
};