pub trait GamepadMethods {
    // Required methods
    fn Id(&self) -> DOMString;
    fn Index(&self) -> i32;
    fn Connected(&self) -> bool;
    fn Timestamp(&self) -> Finite<f64>;
    fn Mapping(&self) -> DOMString;
    fn Axes(&self, cx: SafeJSContext) -> Float64Array;
    fn Buttons(&self) -> Root<Dom<GamepadButtonList>>;
    fn Hand(&self) -> GamepadHand;
    fn GetPose(&self) -> Option<Root<Dom<GamepadPose>>>;
}

Required Methods§

Implementors§