core: Rename `PlayerEvent::MouseLeft` to `MouseLeave`
So it's not consfusing with `KeyCode::MouseLeft`.
This commit is contained in:
parent
c00532aed2
commit
6396c21bc0
|
@ -22,7 +22,7 @@ pub enum PlayerEvent {
|
||||||
x: f64,
|
x: f64,
|
||||||
y: f64,
|
y: f64,
|
||||||
},
|
},
|
||||||
MouseLeft,
|
MouseLeave,
|
||||||
MouseWheel {
|
MouseWheel {
|
||||||
delta: MouseWheelDelta,
|
delta: MouseWheelDelta,
|
||||||
},
|
},
|
||||||
|
|
|
@ -485,7 +485,7 @@ impl App {
|
||||||
}
|
}
|
||||||
WindowEvent::CursorLeft { .. } => {
|
WindowEvent::CursorLeft { .. } => {
|
||||||
let mut player_lock = player.lock().unwrap();
|
let mut player_lock = player.lock().unwrap();
|
||||||
player_lock.handle_event(PlayerEvent::MouseLeft);
|
player_lock.handle_event(PlayerEvent::MouseLeave);
|
||||||
if player_lock.needs_render() {
|
if player_lock.needs_render() {
|
||||||
window.request_redraw();
|
window.request_redraw();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue