GamepadMethods

Trait GamepadMethods 

Source
pub(crate) 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 Buttons(&self, cx: JSContext, retval: MutableHandle<'_, Value>); fn Axes( &self, cx: JSContext, _can_gc: CanGc, retval: MutableHandle<'_, Value>, ); 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§

Source

fn Id(&self) -> DOMString

Source

fn Index(&self) -> i32

Source

fn Connected(&self) -> bool

Source

fn Timestamp(&self) -> Finite<f64>

Source

fn Mapping(&self) -> DOMString

Source

fn Buttons(&self, cx: JSContext, retval: MutableHandle<'_, Value>)

Source

fn Axes(&self, cx: JSContext, _can_gc: CanGc, retval: MutableHandle<'_, Value>)

Source

fn VibrationActuator(&self) -> Root<Dom<<D as DomTypes>::GamepadHapticActuator>>

Source

fn Hand(&self) -> GamepadHand

Source

fn GetPose(&self) -> Option<Root<Dom<<D as DomTypes>::GamepadPose>>>

Implementors§