Skip to main content

GamepadHapticActuatorMethods

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

Required Methods§

Source

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

Source

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

Source

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

Implementors§