send events to scene
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user