forked from Dniel97/segatools
Dniel97
d521eeb43e
- Configure separate pedals which are not part of the steering wheel (base) - It is now possible to have a different steering wheel, pedal and shifter brand all connected to 3 different USB ports - XInput does not have a deadzone at the end of the max steering anymore and the `restrict` setting works as intended
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
struct idac_shifter_config {
|
|
bool auto_neutral;
|
|
};
|
|
|
|
struct idac_di_config {
|
|
wchar_t device_name[64];
|
|
wchar_t pedals_name[64];
|
|
wchar_t shifter_name[64];
|
|
wchar_t brake_axis[16];
|
|
wchar_t accel_axis[16];
|
|
uint8_t start;
|
|
uint8_t view_chg;
|
|
uint8_t left;
|
|
uint8_t right;
|
|
uint8_t shift_dn;
|
|
uint8_t shift_up;
|
|
uint8_t gear[6];
|
|
bool reverse_brake_axis;
|
|
bool reverse_accel_axis;
|
|
};
|
|
|
|
struct idac_xi_config {
|
|
bool single_stick_steering;
|
|
bool linear_steering;
|
|
uint16_t left_stick_deadzone;
|
|
uint16_t right_stick_deadzone;
|
|
};
|
|
|
|
struct idac_io_config {
|
|
uint8_t vk_test;
|
|
uint8_t vk_service;
|
|
uint8_t vk_coin;
|
|
wchar_t mode[8];
|
|
int restrict_;
|
|
struct idac_shifter_config shifter;
|
|
struct idac_di_config di;
|
|
struct idac_xi_config xi;
|
|
};
|
|
|
|
void idac_di_config_load(struct idac_di_config *cfg, const wchar_t *filename);
|
|
void idac_xi_config_load(struct idac_xi_config *cfg, const wchar_t *filename);
|
|
void idac_io_config_load(struct idac_io_config *cfg, const wchar_t *filename);
|
|
void idac_shifter_config_load(
|
|
struct idac_shifter_config *cfg,
|
|
const wchar_t *filename);
|