mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Code cleanup: allow None mouse_pos + clippy fixes
This commit is contained in:
@@ -13,7 +13,7 @@ pub struct RawInput {
|
||||
pub mouse_down: bool,
|
||||
|
||||
/// Current position of the mouse in points.
|
||||
pub mouse_pos: Vec2,
|
||||
pub mouse_pos: Option<Vec2>,
|
||||
|
||||
/// Size of the screen in points.
|
||||
pub screen_size: Vec2,
|
||||
@@ -35,7 +35,7 @@ pub struct GuiInput {
|
||||
pub mouse_released: bool,
|
||||
|
||||
/// Current position of the mouse in points.
|
||||
pub mouse_pos: Vec2,
|
||||
pub mouse_pos: Option<Vec2>,
|
||||
|
||||
/// Size of the screen in points.
|
||||
pub screen_size: Vec2,
|
||||
|
||||
Reference in New Issue
Block a user