Use platform API to request mouse position

Co-Authored-By: Conrad Irwin <conrad@zed.dev>
This commit is contained in:
Nathan Sobo 2023-08-23 12:57:33 -06:00
parent 5996b6b46b
commit 684db11afd
8 changed files with 35 additions and 24 deletions

View file

@ -195,10 +195,6 @@ impl super::Platform for Platform {
Ok(())
}
fn mouse_position(&self) -> Vector2F {
Vector2F::zero()
}
fn set_cursor_style(&self, style: CursorStyle) {
*self.cursor.lock() = style;
}
@ -336,6 +332,10 @@ impl super::Window for Window {
Rc::new(Screen)
}
fn mouse_position(&self) -> Vector2F {
Vector2F::zero()
}
fn as_any_mut(&mut self) -> &mut dyn Any {
self
}