aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gamepadbutton.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2020-04-07 16:05:36 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2020-04-08 20:23:41 -0500
commitc611e46381c9b813aa134ac34b631145ef0c8672 (patch)
tree7b01b33a340a2b9be21ca208d40b508dff9610f0 /components/script/dom/gamepadbutton.rs
parentd8781c1054ec268f19f3e716f2b5d6b56aab52cf (diff)
downloadservo-c611e46381c9b813aa134ac34b631145ef0c8672.tar.gz
servo-c611e46381c9b813aa134ac34b631145ef0c8672.zip
Remove WebVR
Diffstat (limited to 'components/script/dom/gamepadbutton.rs')
-rw-r--r--components/script/dom/gamepadbutton.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/gamepadbutton.rs b/components/script/dom/gamepadbutton.rs
index 6bcbcc2a724..e40e7fb4f05 100644
--- a/components/script/dom/gamepadbutton.rs
+++ b/components/script/dom/gamepadbutton.rs
@@ -18,6 +18,8 @@ pub struct GamepadButton {
value: Cell<f64>,
}
+// TODO: support gamepad discovery
+#[allow(dead_code)]
impl GamepadButton {
pub fn new_inherited(pressed: bool, touched: bool) -> GamepadButton {
Self {
@@ -53,6 +55,8 @@ impl GamepadButtonMethods for GamepadButton {
}
}
+// TODO: support gamepad discovery
+#[allow(dead_code)]
impl GamepadButton {
pub fn update(&self, pressed: bool, touched: bool) {
self.pressed.set(pressed);