allow saving analog dpad mode and libretro device to remap files

This commit is contained in:
radius 2017-08-05 00:09:46 -05:00
parent 9862b75b4b
commit a973d5dc8a
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,8 @@
- INPUT: input swap override flag (for remotes) is cleared correctly
- INPUT: allow specifying libretro device in remap files
- INPUT: allow specifying analog dpad mode in remap files
- INPUT: allow saving libretro device to remap files
- INPUT: allow saving analog dpad mode to remap files
- COMMON: Add 'Delete Core'option to Core Information menu.
- COMMON: Allow Max Timing Skew to be set to 0.
- LOCALIZATION: Update Russian translation

View File

@ -170,6 +170,10 @@ bool input_remapping_save_file(const char *path)
config_unset(conf,key_ident[j]);
}
}
snprintf(buf, sizeof(buf), "input_libretro_device_p%u", i + 1);
config_set_int(conf, buf, input_config_get_device(i));
snprintf(buf, sizeof(buf), "input_player%u_analog_dpad_mode", i + 1);
config_set_int(conf, buf, settings->uints.input_analog_dpad_mode[i]);
}
ret = config_file_write(conf, remap_file);