Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Add fetch_gamepads to VRExternalDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Apr 20, 2019
1 parent e84b4d2 commit 42c0ab2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust-webvr/src/api/vrexternal/android/display.rs
Expand Up @@ -5,7 +5,7 @@ use std::mem;
use std::sync::Arc;
use {
VRDisplay, VRDisplayData, VRDisplayEvent, VRFrameData, VRFramebuffer,
VRFramebufferAttributes, VRLayer, VRViewport,
VRFramebufferAttributes, VRGamepadPtr, VRLayer, VRViewport,
};

pub type VRExternalDisplayPtr = Arc<RefCell<VRExternalDisplay>>;
Expand Down Expand Up @@ -241,6 +241,10 @@ impl VRDisplay for VRExternalDisplay {
self.push_browser();
}

fn fetch_gamepads(&mut self) -> Result<Vec<VRGamepadPtr>, String> {
Ok(Vec::new())
}

fn start_present(&mut self, attributes: Option<VRFramebufferAttributes>) {
if self.presenting {
return;
Expand Down

0 comments on commit 42c0ab2

Please sign in to comment.