Update rust-webvr

This commit is contained in:
Imanol Fernandez 2017-05-24 23:08:23 +02:00
parent bb310efbb9
commit 5ac106cbbe
7 changed files with 58 additions and 13 deletions

View file

@ -152,6 +152,13 @@ impl VR {
WebVRDisplayEvent::Change(ref display) => {
let display = self.sync_display(&display);
display.handle_webvr_event(&event);
},
WebVRDisplayEvent::Pause(id) |
WebVRDisplayEvent::Resume(id) |
WebVRDisplayEvent::Exit(id) => {
if let Some(display) = self.find_display(id) {
display.handle_webvr_event(&event);
}
}
};
}