mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update rust-webvr
This commit is contained in:
parent
bb310efbb9
commit
5ac106cbbe
7 changed files with 58 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue