Hide cursor
This commit is contained in:
parent
1e638681a4
commit
e8eb9ac44b
|
@ -10,7 +10,6 @@ use glium::glutin::{
|
||||||
MouseScrollDelta,
|
MouseScrollDelta,
|
||||||
KeyboardInput,
|
KeyboardInput,
|
||||||
VirtualKeyCode,
|
VirtualKeyCode,
|
||||||
MouseCursor,
|
|
||||||
};
|
};
|
||||||
use glium::glutin::dpi::{
|
use glium::glutin::dpi::{
|
||||||
LogicalSize,
|
LogicalSize,
|
||||||
|
@ -350,7 +349,7 @@ impl Controls for FirstPersonControls {
|
||||||
|
|
||||||
fn update(&mut self, camera: &mut Camera, renderer: &Renderer) {
|
fn update(&mut self, camera: &mut Camera, renderer: &Renderer) {
|
||||||
|
|
||||||
// renderer.gl_window().window().set_cursor(MouseCursor::NoneCursor);
|
renderer.gl_window().hide_cursor(true);
|
||||||
|
|
||||||
let mut speed = Vector3::new(0.0, 0.0, 0.0);
|
let mut speed = Vector3::new(0.0, 0.0, 0.0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue