mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 14:50:41 -07:00
presets: minor UI fixes, add new controller profiles (#584)
## Link to GitHub Issue or related Pull Request, if one exists #579 ## Description of change * Fix profiles being loaded twice on tab switch * Add more default profiles for some controllers * Remove borders from tables since they look broken in software renderer * Add check boxes to import/export only certain parts of of a profile * Show device identifier string in drop down when applying profiles since some controllers have multiple identically named interfaces * Show completion message when action buttons are clicked (`Apply` button, `Clear all bindings` button both become disabled & shows `done` message)
This commit is contained in:
@@ -145,7 +145,13 @@ namespace overlay::windows {
|
||||
// template management API
|
||||
std::vector<ControllerTemplate> get_templates_for_game(const std::string &game_name);
|
||||
std::vector<ControllerTemplate> load_user_templates();
|
||||
bool save_user_template(const ControllerTemplate &tmpl);
|
||||
bool save_user_template(
|
||||
const ControllerTemplate &tmpl,
|
||||
const bool save_buttons,
|
||||
const bool save_keypads,
|
||||
const bool save_analogs,
|
||||
const bool save_lights);
|
||||
|
||||
bool delete_user_template(const std::string &game_name, const std::string &template_name);
|
||||
bool rename_user_template(const std::string &game_name,
|
||||
const std::string &old_name, const std::string &new_name);
|
||||
|
||||
Reference in New Issue
Block a user