iOS/tvOS: default accessibility on if voice over is enabled

This commit is contained in:
Eric Warmenhoven 2024-05-23 11:10:34 -04:00 committed by LibretroAdmin
parent 5454b570e7
commit b38304cae5
2 changed files with 11 additions and 1 deletions

View File

@ -70,7 +70,7 @@
#include "switch_performance_profiles.h"
#endif
#if TARGET_OS_TV
#if IOS
#include "ui/drivers/cocoa/apple_platform.h"
#endif
@ -2880,6 +2880,11 @@ void config_set_defaults(void *data)
load_timezone(settings->arrays.timezone);
#endif
#if IOS
configuration_set_bool(settings,
settings->bools.accessibility_enable, UIAccessibilityIsVoiceOverRunning());
#endif
#ifdef HAVE_MENU
if (first_initialized)
configuration_set_bool(settings,

View File

@ -1,6 +1,11 @@
#ifndef COCOA_APPLE_PLATFORM_H
#define COCOA_APPLE_PLATFORM_H
#if TARGET_OS_IPHONE
/* this comes from UIKit but you cannot #include UIKit from C */
extern bool UIAccessibilityIsVoiceOverRunning(void);
#endif
#if TARGET_OS_TV
#include "config_file.h"
extern config_file_t *open_userdefaults_config_file(void);