Skip to main content

GamepadHapticActuatorMethods

Trait GamepadHapticActuatorMethods 

Source
pub trait GamepadHapticActuatorMethods<D>
where D: DomTypes,
{ // Required methods fn Effects(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>); fn PlayEffect( &self, realm: &mut CurrentRealm<'_>, type_: GamepadHapticEffectType, params: &GamepadEffectParameters, ) -> Rc<<D as DomTypes>::Promise>; fn Reset( &self, realm: &mut CurrentRealm<'_>, ) -> Rc<<D as DomTypes>::Promise>; }

Required Methods§

Source

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

Source

fn PlayEffect( &self, realm: &mut CurrentRealm<'_>, type_: GamepadHapticEffectType, params: &GamepadEffectParameters, ) -> Rc<<D as DomTypes>::Promise>

Source

fn Reset(&self, realm: &mut CurrentRealm<'_>) -> Rc<<D as DomTypes>::Promise>

Implementors§