swap y and z, improve gyro-to-joystick
This commit is contained in:
parent
ec2d777245
commit
ae3fac6301
9 changed files with 43 additions and 38 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue