mirror of
https://gitea.tendokyu.moe/Hay1tsme/segatools.git
synced 2024-11-25 01:40:11 +01:00
5b50824e2f
Add axis reversal for dinput and single stick steering for xinput.
46 lines
1.0 KiB
C
46 lines
1.0 KiB
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
struct idz_shifter_config {
|
|
bool auto_neutral;
|
|
};
|
|
|
|
struct idz_di_config {
|
|
wchar_t device_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 shift_dn;
|
|
uint8_t shift_up;
|
|
uint8_t gear[6];
|
|
bool reverse_brake_axis;
|
|
bool reverse_accel_axis;
|
|
};
|
|
|
|
struct idz_xi_config {
|
|
bool single_stick_steering;
|
|
};
|
|
|
|
struct idz_io_config {
|
|
uint8_t vk_test;
|
|
uint8_t vk_service;
|
|
uint8_t vk_coin;
|
|
wchar_t mode[8];
|
|
int restrict_;
|
|
struct idz_shifter_config shifter;
|
|
struct idz_di_config di;
|
|
struct idz_xi_config xi;
|
|
};
|
|
|
|
void idz_di_config_load(struct idz_di_config *cfg, const wchar_t *filename);
|
|
void idz_xi_config_load(struct idz_xi_config *cfg, const wchar_t *filename);
|
|
void idz_io_config_load(struct idz_io_config *cfg, const wchar_t *filename);
|
|
void idz_shifter_config_load(
|
|
struct idz_shifter_config *cfg,
|
|
const wchar_t *filename);
|