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:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user