Sync input source data every frame if necessary

This commit is contained in:
Manish Goregaokar 2019-04-29 20:07:59 -07:00
parent 5c8132c379
commit b693af6a54
2 changed files with 24 additions and 2 deletions

View file

@ -47,4 +47,8 @@ impl XRInputSource {
XRInputSourceBinding::Wrap,
)
}
pub fn update_state(&self, state: WebVRGamepadState) {
*self.state.borrow_mut() = state;
}
}