swap y and z, improve gyro-to-joystick

This commit is contained in:
Denis 2024-01-06 03:32:50 +01:00
parent ec2d777245
commit ae3fac6301
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
9 changed files with 43 additions and 38 deletions

View file

@ -113,6 +113,13 @@ void load_out_config(dev_out_settings_t *const out_conf, const char* const filep
fprintf(stderr, "dualsense_edge (bool) configuration not found. Default value will be used.\n");
}
int swap_y_z;
if (config_lookup_bool(&cfg, "swap_y_z", &swap_y_z) != CONFIG_FALSE) {
out_conf->swap_y_z = swap_y_z;
} else {
fprintf(stderr, "swap_y_z (bool) configuration not found. Default value will be used.\n");
}
config_destroy(&cfg);
load_out_config_err: