removed hacky caret, fixed highlight rectsize, added voice input idea

This commit is contained in:
Anton-4 2020-12-22 15:57:50 +01:00
parent c82119e6d8
commit fc310cf974
4 changed files with 12 additions and 19 deletions

View file

@ -107,7 +107,7 @@ fn run_event_loop() -> Result<(), Box<dyn Error>> {
let mut glyph_brush = build_glyph_brush(&gpu_device, render_format)?;
let is_animating = true;
let mut text_state = String::new();
let mut text_state = "A".to_owned();
let mut keyboard_modifiers = ModifiersState::empty();
// Render loop
@ -341,7 +341,7 @@ fn queue_all_text(
position: (30.0, 90.0).into(),
area_bounds,
color: (0.0, 0.05, 0.46, 1.0).into(),
text: String::from(format!("{}|", text_state).as_str()),
text: String::from(text_state),
size: 40.0,
..Default::default()
};