mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Sync input source data every frame if necessary
This commit is contained in:
parent
5c8132c379
commit
b693af6a54
2 changed files with 24 additions and 2 deletions
|
@ -47,4 +47,8 @@ impl XRInputSource {
|
|||
XRInputSourceBinding::Wrap,
|
||||
)
|
||||
}
|
||||
|
||||
pub fn update_state(&self, state: WebVRGamepadState) {
|
||||
*self.state.borrow_mut() = state;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue