GamepadMethods

Trait GamepadMethods 

Source
pub trait GamepadMethods<D>
where D: DomTypes,
{ // 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: JSContext, ) -> RootedTraceableBox<TypedArray<Float64, Box<Heap<*mut JSObject>>>>; fn Buttons(&self) -> Root<Dom<<D as DomTypes>::GamepadButtonList>>; fn VibrationActuator( &self, ) -> Root<Dom<<D as DomTypes>::GamepadHapticActuator>>; fn Hand(&self) -> GamepadHand; fn GetPose(&self) -> Option<Root<Dom<<D as DomTypes>::GamepadPose>>>; }

Required Methods§

Implementors§