core: Rename `PlayerEvent::MouseLeft` to `MouseLeave`

So it's not consfusing with `KeyCode::MouseLeft`.
This commit is contained in:
relrelb 2021-12-17 11:54:24 +02:00 committed by Mike Welsh
parent c00532aed2
commit 6396c21bc0
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ pub enum PlayerEvent {
x: f64,
y: f64,
},
MouseLeft,
MouseLeave,
MouseWheel {
delta: MouseWheelDelta,
},

View File

@ -485,7 +485,7 @@ impl App {
}
WindowEvent::CursorLeft { .. } => {
let mut player_lock = player.lock().unwrap();
player_lock.handle_event(PlayerEvent::MouseLeft);
player_lock.handle_event(PlayerEvent::MouseLeave);
if player_lock.needs_render() {
window.request_redraw();
}