diff options
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs index 8c4107ca..770ac53e 100644 --- a/src/event.rs +++ b/src/event.rs @@ -148,6 +148,8 @@ pub struct Mouse { pub x: u32, pub y: u32, pub left_button_state: ElementState, + pub middle_button_state: ElementState, + pub right_button_state: ElementState, pub last_click_timestamp: Instant, pub click_state: ClickState, pub scroll_px: i32, @@ -164,6 +166,8 @@ impl Default for Mouse { y: 0, last_click_timestamp: Instant::now(), left_button_state: ElementState::Released, + middle_button_state: ElementState::Released, + right_button_state: ElementState::Released, click_state: ClickState::None, scroll_px: 0, line: Line(0), |