mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(Accessibility) Add the two new Accessibility settings
This commit is contained in:
parent
6992f580e8
commit
9462fd301a
@ -172,6 +172,10 @@
|
|||||||
|
|
||||||
#define DEFAULT_PLAYLIST_ENTRY_RENAME true
|
#define DEFAULT_PLAYLIST_ENTRY_RENAME true
|
||||||
|
|
||||||
|
#define DEFAULT_ACCESSIBILITY_ENABLE false
|
||||||
|
|
||||||
|
#define DEFAULT_ACCESSIBILITY_NARRATOR_SPEECH_SPEED 5
|
||||||
|
|
||||||
#define DEFAULT_DRIVER_SWITCH_ENABLE true
|
#define DEFAULT_DRIVER_SWITCH_ENABLE true
|
||||||
|
|
||||||
#define DEFAULT_USER_LANGUAGE 0
|
#define DEFAULT_USER_LANGUAGE 0
|
||||||
|
@ -1330,6 +1330,7 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings,
|
|||||||
struct config_bool_setting *tmp = (struct config_bool_setting*)calloc(1, (*size + 1) * sizeof(struct config_bool_setting));
|
struct config_bool_setting *tmp = (struct config_bool_setting*)calloc(1, (*size + 1) * sizeof(struct config_bool_setting));
|
||||||
unsigned count = 0;
|
unsigned count = 0;
|
||||||
|
|
||||||
|
SETTING_BOOL("accessibility_enable", &settings->bools.accessibility_enable, true, DEFAULT_ACCESSIBILITY_ENABLE, false);
|
||||||
SETTING_BOOL("driver_switch_enable", &settings->bools.driver_switch_enable, true, DEFAULT_DRIVER_SWITCH_ENABLE, false);
|
SETTING_BOOL("driver_switch_enable", &settings->bools.driver_switch_enable, true, DEFAULT_DRIVER_SWITCH_ENABLE, false);
|
||||||
SETTING_BOOL("frame_time_counter_reset_after_fastforwarding", &settings->bools.frame_time_counter_reset_after_fastforwarding, true, false, false);
|
SETTING_BOOL("frame_time_counter_reset_after_fastforwarding", &settings->bools.frame_time_counter_reset_after_fastforwarding, true, false, false);
|
||||||
SETTING_BOOL("frame_time_counter_reset_after_load_state", &settings->bools.frame_time_counter_reset_after_load_state, true, false, false);
|
SETTING_BOOL("frame_time_counter_reset_after_load_state", &settings->bools.frame_time_counter_reset_after_load_state, true, false, false);
|
||||||
@ -1727,6 +1728,7 @@ static struct config_uint_setting *populate_settings_uint(settings_t *settings,
|
|||||||
if (!tmp)
|
if (!tmp)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
SETTING_UINT("accessibility_narrator_speech_speed", &settings->uints.accessibility_narrator_speech_speed, true, DEFAULT_ACCESSIBILITY_NARRATOR_SPEECH_SPEED, false);
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
SETTING_UINT("streaming_mode", &settings->uints.streaming_mode, true, STREAMING_MODE_TWITCH, false);
|
SETTING_UINT("streaming_mode", &settings->uints.streaming_mode, true, STREAMING_MODE_TWITCH, false);
|
||||||
#endif
|
#endif
|
||||||
|
@ -110,6 +110,9 @@ typedef struct settings
|
|||||||
bool video_layout_enable;
|
bool video_layout_enable;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Accessibility */
|
||||||
|
bool accessibility_enable;
|
||||||
|
|
||||||
/* Audio */
|
/* Audio */
|
||||||
bool audio_enable;
|
bool audio_enable;
|
||||||
bool audio_enable_menu;
|
bool audio_enable_menu;
|
||||||
@ -518,6 +521,9 @@ typedef struct settings
|
|||||||
#endif
|
#endif
|
||||||
unsigned video_shader_delay;
|
unsigned video_shader_delay;
|
||||||
|
|
||||||
|
/* Accessibility */
|
||||||
|
unsigned accessibility_narrator_speech_speed;
|
||||||
|
|
||||||
unsigned menu_timedate_style;
|
unsigned menu_timedate_style;
|
||||||
unsigned menu_thumbnails;
|
unsigned menu_thumbnails;
|
||||||
unsigned menu_left_thumbnails;
|
unsigned menu_left_thumbnails;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user