2023-07-14 00:52:50 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct swdc_di_config {
|
|
|
|
wchar_t device_name[64];
|
2023-10-05 00:46:54 +02:00
|
|
|
wchar_t pedals_name[64];
|
2023-07-14 00:52:50 +02:00
|
|
|
wchar_t brake_axis[16];
|
|
|
|
wchar_t accel_axis[16];
|
|
|
|
uint8_t start;
|
|
|
|
uint8_t view_chg;
|
2023-09-05 00:23:17 +02:00
|
|
|
uint8_t paddle_left;
|
|
|
|
uint8_t paddle_right;
|
2023-07-14 00:52:50 +02:00
|
|
|
uint8_t wheel_green;
|
|
|
|
uint8_t wheel_red;
|
|
|
|
uint8_t wheel_blue;
|
|
|
|
uint8_t wheel_yellow;
|
|
|
|
bool reverse_brake_axis;
|
|
|
|
bool reverse_accel_axis;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct swdc_xi_config {
|
|
|
|
bool single_stick_steering;
|
2023-08-15 17:20:27 +02:00
|
|
|
bool linear_steering;
|
2023-08-29 02:22:05 +02:00
|
|
|
uint16_t left_stick_deadzone;
|
|
|
|
uint16_t right_stick_deadzone;
|
2023-07-14 00:52:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct swdc_io_config {
|
|
|
|
uint8_t vk_test;
|
|
|
|
uint8_t vk_service;
|
|
|
|
uint8_t vk_coin;
|
|
|
|
wchar_t mode[8];
|
|
|
|
int restrict_;
|
|
|
|
struct swdc_di_config di;
|
|
|
|
struct swdc_xi_config xi;
|
|
|
|
};
|
|
|
|
|
|
|
|
void swdc_di_config_load(struct swdc_di_config *cfg, const wchar_t *filename);
|
|
|
|
void swdc_xi_config_load(struct swdc_xi_config *cfg, const wchar_t *filename);
|
|
|
|
void swdc_io_config_load(struct swdc_io_config *cfg, const wchar_t *filename);
|