From 960dba19090193000258b81bac4f2d69111bbb8e Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sat, 16 Dec 2017 19:57:59 -0500 Subject: [PATCH] Update to latest glutin, glium and image. --- Cargo.toml | 6 +++--- support/camera.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c7f4875..67c6efa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,9 @@ opt-level = 3 [dependencies] cgmath = "*" -glium = "0.17.0" -glutin = "0.9" -image = { version = "0.14.0", features = ["png_codec"], optional = true } +glium = "0.19" +glutin = "0.11" +image = { version = "0.18", features = ["png_codec"], optional = true } libxm = "1.0.0" rust-rocket = { path = "rust-rocket", optional = true } rand = "*" 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. -- 2.25.1