2020-01-12 20:34:31 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2016 - Daniel De Matteis
|
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __RETROARCH_ACCESSIBILITY_H
|
|
|
|
#define __RETROARCH_ACCESSIBILITY_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <boolean.h>
|
|
|
|
#include <retro_inline.h>
|
|
|
|
#include <retro_common_api.h>
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2021-11-06 00:59:03 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int ai_service_auto;
|
|
|
|
/* Is text-to-speech accessibility turned on? */
|
|
|
|
bool enabled;
|
|
|
|
} access_state_t;
|
|
|
|
|
2021-11-06 01:13:10 +00:00
|
|
|
bool is_accessibility_enabled(bool accessibility_enable, bool accessibility_enabled);
|
|
|
|
|
|
|
|
bool accessibility_speak_priority(
|
|
|
|
bool accessibility_enable,
|
|
|
|
unsigned accessibility_narrator_speech_speed,
|
|
|
|
const char* speak_text, int priority);
|
|
|
|
|
2021-11-06 00:59:03 +00:00
|
|
|
access_state_t *access_state_get_ptr(void);
|
|
|
|
|
2020-01-12 20:34:31 +00:00
|
|
|
#endif
|