/* * Stops an effect. */ int SDL_SYS_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect) { HRESULT ret; ret = FFEffectStop(effect->hweffect->ref); if (ret != FF_OK) { return SDL_SetError("Haptic: Unable to stop the effect: %s.", FFStrError(ret)); } return 0; }
void JoypadOSX::joypad_vibration_stop(int p_id, uint64_t p_timestamp) { joypad *joy = &device_list[get_joy_index(p_id)]; joy->ff_timestamp = p_timestamp; FFEffectStop(joy->ff_object); }
static HRESULT WINAPI effect_Stop(IDirectInputEffect *iface) { EffectImpl *This = impl_from_IDirectInputEffect(iface); TRACE("%p\n", This); return osx_to_win32_hresult(FFEffectStop(This->effect)); }