idz, idac, swdc: added FFB centering spring feature

This commit is contained in:
2023-12-11 19:18:25 +01:00
parent 4ffcf25555
commit 72db08ac93
18 changed files with 147 additions and 43 deletions

View File

@ -67,6 +67,14 @@ void swdc_di_config_load(struct swdc_di_config *cfg, const wchar_t *filename)
L"reverseAccelAxis",
0,
filename);
// FFB configuration
cfg->center_spring_strength = GetPrivateProfileIntW(
L"dinput",
L"centerSpringStrength",
30,
filename);
}
void swdc_xi_config_load(struct swdc_xi_config *cfg, const wchar_t *filename)