send events to scene

This commit is contained in:
2016-09-30 14:15:24 -07:00
parent 235b5d58bd
commit 0b8db8d9b4
4 changed files with 16 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
extern crate vrtue;
use vrtue::{scenes, view, vr};
use vrtue::scene::Scene;
use vrtue::scene::{Event, Scene};
extern crate env_logger;
extern crate gfx_device_gl;
@@ -35,6 +35,8 @@ pub fn main() {
piston_window::Input::Text(_) => break 'main,
_ => debug!("\t{:?}", ev)
}
scene.event(Event::Piston(ev));
}
}