walk around reorienting world torus
This commit is contained in:
@@ -5,11 +5,14 @@ use vrtue::scene::{Event, Scene};
|
||||
extern crate env_logger;
|
||||
extern crate gfx_device_gl;
|
||||
#[macro_use] extern crate log;
|
||||
extern crate piston;
|
||||
extern crate piston_window;
|
||||
|
||||
use self::piston::input::{Button, Input, Key};
|
||||
use self::piston_window::{PistonWindow, Window, WindowSettings};
|
||||
use std::env;
|
||||
|
||||
|
||||
pub fn main() {
|
||||
env_logger::init().expect("env logger");
|
||||
let mut vr = if env::var("NO_VR").is_ok() {
|
||||
@@ -41,7 +44,8 @@ pub fn main() {
|
||||
// handle window events
|
||||
while let Some(ev) = window.poll_event() {
|
||||
match ev {
|
||||
piston_window::Input::Text(_) => break 'main,
|
||||
Input::Press(Button::Keyboard(Key::Space)) |
|
||||
Input::Press(Button::Keyboard(Key::Escape)) => break 'main,
|
||||
_ => debug!("\t{:?}", ev)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user