iris update

This commit is contained in:
2025-11-22 20:22:37 -05:00
parent 7e15bfa494
commit 80e328e1aa
2 changed files with 10 additions and 3 deletions

2
iris

Submodule iris updated: d757e805e8...90c579d734

View File

@@ -17,7 +17,7 @@ use openworm::{
use render::Renderer; use render::Renderer;
use std::{sync::Arc, time::Instant}; use std::{sync::Arc, time::Instant};
use winit::{ use winit::{
event::{Ime, WindowEvent}, event::{ElementState, Ime, MouseButton, WindowEvent},
event_loop::{ActiveEventLoop, EventLoopProxy}, event_loop::{ActiveEventLoop, EventLoopProxy},
window::Window, window::Window,
}; };
@@ -173,10 +173,17 @@ impl Client {
TextInputResult::Used => { TextInputResult::Used => {
self.run_event(sel, Edited, ()); self.run_event(sel, Edited, ());
} }
TextInputResult::Unused => (), TextInputResult::Unused => {}
} }
} }
} }
WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Middle,
..
} => {
self.ui.debug_layers();
}
WindowEvent::Ime(ime) => { WindowEvent::Ime(ime) => {
if let Some(sel) = &self.focus { if let Some(sel) = &self.focus {
let mut text = self.ui.text(sel); let mut text = self.ui.text(sel);