mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
31 lines
652 B
C++
31 lines
652 B
C++
#include "ppsspp_config.h"
|
|
|
|
#include <string>
|
|
|
|
#if PPSSPP_PLATFORM(WINDOWS) && PPSSPP_ARCH(AMD64) && !PPSSPP_PLATFORM(UWP)
|
|
|
|
#include "ext/nvda/x64/nvdaController.h"
|
|
#include "Common/Data/Encoding/Utf8.h"
|
|
|
|
void TTS_Say(const char *text) {
|
|
std::wstring wstr = ConvertUTF8ToWString(text);
|
|
nvdaController_speakText(wstr.c_str());
|
|
}
|
|
|
|
void TTS_Braille(const char *text) {
|
|
std::wstring wstr = ConvertUTF8ToWString(text);
|
|
nvdaController_speakText(wstr.c_str());
|
|
}
|
|
|
|
bool TTS_Active() {
|
|
return nvdaController_testIfRunning() == 0;
|
|
}
|
|
|
|
#else
|
|
|
|
void TTS_Active() { return false; }
|
|
void TTS_Say(const char *text) {}
|
|
void TTS_Braille(const char *text) {}
|
|
|
|
#endif
|