Mercurial > repos > blastem
comparison controller_info.c @ 2018:193b804c9845
Add a UI button to reset config to defaults
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 09 Nov 2020 00:29:47 -0800 |
parents | 8a64d86cc362 |
children | a8af8d898a7c |
comparison
equal
deleted
inserted
replaced
2017:8e7b06ade815 | 2018:193b804c9845 |
---|---|
222 free(full); | 222 free(full); |
223 handle_joy_added(joystick); | 223 handle_joy_added(joystick); |
224 #endif | 224 #endif |
225 } | 225 } |
226 | 226 |
227 void delete_controller_info(void) | |
228 { | |
229 delete_custom_config_at("controller_types.cfg"); | |
230 loaded = 0; | |
231 tern_free(info_config); | |
232 info_config = NULL; | |
233 render_reset_mappings(); | |
234 } | |
235 | |
227 char const *labels_xbox[] = { | 236 char const *labels_xbox[] = { |
228 "A", "B", "X", "Y", "Back", NULL, "Start", "Click", "Click", "White", "Black", "LT", "RT" | 237 "A", "B", "X", "Y", "Back", NULL, "Start", "Click", "Click", "White", "Black", "LT", "RT" |
229 }; | 238 }; |
230 char const *labels_360[] = { | 239 char const *labels_360[] = { |
231 "A", "B", "X", "Y", "Back", "Xbox", "Start", "Click", "Click", "LB", "RB", "LT", "RT" | 240 "A", "B", "X", "Y", "Back", "Xbox", "Start", "Click", "Click", "LB", "RB", "LT", "RT" |