1
0
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:
Emil Ernerfeldt
2019-02-10 15:30:48 +01:00
parent 1beed16053
commit f0c879b2f4
9 changed files with 81 additions and 67 deletions

View File

@@ -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,