Skip to content

Commit

Permalink
Fix merge issues manually
Browse files Browse the repository at this point in the history
  • Loading branch information
zenMaya committed Aug 24, 2020
1 parent c1343a3 commit 0e4c7a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion crates/bevy_input/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ use bevy_app::prelude::*;
use bevy_window::{AxisId, Cursor};
use keyboard::{keyboard_input_system, KeyCode, KeyboardInput};

use mouse::{axis_system, cursor_system, mouse_axis_system, mouse_button_input_system, MouseButton, MouseButtonInput, MouseMotion, MouseWheel};
use mouse::{
axis_system, cursor_system, mouse_axis_system, mouse_button_input_system, MouseButton,
MouseButtonInput, MouseMotion, MouseWheel,
};

use bevy_ecs::IntoQuerySystem;

Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_input/src/mouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub enum Mouse {
Vertical,
Horizontal,
}
/// Unit of scroll
/// Unit of scroll
#[derive(Debug, Clone)]
pub enum MouseScrollUnit {
Line,
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ pub fn winit_runner(mut app: App) {
},
_ => {}
},
event::Event::DeviceEvent { ref event, .. } => {
if let DeviceEvent::MouseMotion { delta } = event {
event::Event::DeviceEvent { ref event, .. } => match event {
DeviceEvent::MouseMotion { delta } => {
let mut mouse_motion_events =
app.resources.get_mut::<Events<MouseMotion>>().unwrap();
mouse_motion_events.send(MouseMotion {
Expand Down

0 comments on commit 0e4c7a4

Please sign in to comment.