Trait script::dom::bindings::codegen::Bindings::GamepadBinding::Gamepad_Binding::GamepadMethods
source · 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 VibrationActuator(&self) -> Root<Dom<GamepadHapticActuator>>;
fn Hand(&self) -> GamepadHand;
fn GetPose(&self) -> Option<Root<Dom<GamepadPose>>>;
}