1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Add experimental screen_reader feature

Part of https://github.com/emilk/egui/issues/167
This commit is contained in:
Emil Ernerfeldt
2021-03-08 20:58:01 +01:00
parent cb7ef6faeb
commit 44cd304cdf
13 changed files with 504 additions and 3 deletions

View File

@@ -180,6 +180,8 @@ pub fn run(mut app: Box<dyn epi::App>) -> ! {
#[cfg(feature = "http")]
let http = std::sync::Arc::new(crate::http::GliumHttp {});
let mut screen_reader = crate::screen_reader::ScreenReader::default();
if app.warm_up_enabled() {
// let warm_up_start = Instant::now();
input_state.raw.time = Some(0.0);
@@ -273,6 +275,7 @@ pub fn run(mut app: Box<dyn epi::App>) -> ! {
};
}
screen_reader.speak(&egui_output.events_description());
handle_output(egui_output, &display, clipboard.as_mut());
#[cfg(feature = "persistence")]