Vixen
02b45cc4
csharp
public interface IHaptics

Force feedback on one device.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Every method is best-effort and silently does nothing on a device that cannot do it, because the alternative is every caller writing the same capability check before every rumble. Ask SupportsRumble when the answer changes what the game does — offering the setting at all, say — and not before each call.

Fields and properties (2)

  • bool SupportsRumble

    Whether the device has rumble motors.

  • bool SupportsTriggerRumble

    Whether the device has motors in the triggers, as Xbox One and later pads do.

Methods (3)

  • void Rumble(float lowFrequency, float highFrequency, TimeSpan duration)

    Runs the main motors.

  • void RumbleTriggers(float left, float right, TimeSpan duration)

    Runs the trigger motors.

  • void StopRumble()

    Stops everything immediately.

Used by (3)

  • DesktopGamepadVixen.Platform.Desktop
  • DesktopHapticsVixen.Platform.Desktop
  • IGamepadVixen.Platform