X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=support%2Fcamera.rs;h=b31b9e33c47d79e382e180f9feb5e0f3d8147fd3;hb=86128afc09d24831b265937922d88b7eb5f01e62;hp=69e3bb5388447df98326398edabd3d01f13833e0;hpb=ea6dc9f11f8fa27c1a20ffe2e70e4d2fbe69cdff;p=mandelwow.git diff --git a/support/camera.rs b/support/camera.rs index 69e3bb5..b31b9e3 100644 --- a/support/camera.rs +++ b/support/camera.rs @@ -2,7 +2,7 @@ extern crate glutin; use cgmath::{Matrix4, Vector4}; use cgmath::conv::array4x4; -use glutin::WindowEvent::{KeyboardInput, MouseMoved}; +use glutin::WindowEvent::{KeyboardInput, CursorMoved}; use glutin::VirtualKeyCode; use std::f32; use std::f32::consts::PI; @@ -167,7 +167,7 @@ impl CameraState { pub fn process_input(&mut self, event: &glutin::WindowEvent) { match event { - &MouseMoved { position: (x, y), .. } => { + &CursorMoved { position: (x, y), .. } => { let (x, y) = (x as i32, y as i32); if self.mouse_x == -1 { // Set initial absolute position.