Code refactor

This commit is contained in:
Denis 2023-12-06 00:32:51 +01:00
parent 89f348f7c1
commit d6e6162db5
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
21 changed files with 1342 additions and 1251 deletions

View file

@ -6,8 +6,16 @@ typedef struct controller_settings {
uint16_t ff_gain;
int enable_qam;
int nintendo_layout;
/**
* 0 is virtual evdev
* 1 is DualSense
* 2 is DualShock
* 3 is Xbox one
*/
int gamepad_output_device;
} controller_settings_t;
void init_config(controller_settings_t *const conf);
int fill_config(controller_settings_t *const conf, const char* file);
int fill_config(controller_settings_t *const conf, const char* file);