mirror of
https://github.com/lightsoutgames/bevy_tts.git
synced 2024-12-26 05:05:55 +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)]
|
||||
pub struct Tts(tts::Tts);
|
||||
|
||||
impl Tts {
|
||||
pub fn screen_reader_available() -> bool {
|
||||
tts::Tts::screen_reader_available()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum TtsEvent {
|
||||
UtteranceBegin(UtteranceId),
|
||||
|
|
Loading…
Reference in New Issue
Block a user