walk around reorienting world torus

This commit is contained in:
2016-10-19 15:14:57 -07:00
parent f2a645730c
commit 2583de70b3
5 changed files with 76 additions and 36 deletions

View File

@@ -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)
}