mirror of
https://github.com/lightsoutgames/bevy_tts.git
synced 2024-11-23 21:25:57 +00:00
feat: Add Tts::screen_reader_available()
to Tts
resource.
This commit is contained in:
parent
2191d22f55
commit
d362d8c171
|
@ -5,6 +5,12 @@ pub use tts::{self, Backends, Error, Features, UtteranceId};
|
||||||
#[derive(Resource, Clone, Deref, DerefMut)]
|
#[derive(Resource, Clone, Deref, DerefMut)]
|
||||||
pub struct Tts(tts::Tts);
|
pub struct Tts(tts::Tts);
|
||||||
|
|
||||||
|
impl Tts {
|
||||||
|
pub fn screen_reader_available() -> bool {
|
||||||
|
tts::Tts::screen_reader_available()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum TtsEvent {
|
pub enum TtsEvent {
|
||||||
UtteranceBegin(UtteranceId),
|
UtteranceBegin(UtteranceId),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user