Changed MouseMoved((i32, i32)) to MouseMoved(i32, i32), breaking change
This commit is contained in:
parent
8ae2df68e1
commit
117069ef90
6 changed files with 8 additions and 8 deletions
|
|
@ -52,7 +52,7 @@ pub fn translate_event(
|
|||
if known_surfaces.contains(&surface) {
|
||||
focuses.pointer_on = Some(surface);
|
||||
focuses.pointer_at = Some((x, y));
|
||||
Some((GlutinEvent::MouseMoved((x as i32, y as i32)), surface))
|
||||
Some((GlutinEvent::MouseMoved(x as i32, y as i32), surface))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ pub fn translate_event(
|
|||
WlPointerEvent::Motion(_, x, y) => {
|
||||
if let Some(surface) = focuses.pointer_on {
|
||||
focuses.pointer_at = Some((x, y));
|
||||
Some((GlutinEvent::MouseMoved((x as i32, y as i32)), surface))
|
||||
Some((GlutinEvent::MouseMoved(x as i32, y as i32), surface))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue