// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.MixedReality.Toolkit.Input
{
///
/// Provides access to the haptic capabilities of a device.
///
public interface IMixedRealityHapticFeedback
{
///
/// Start haptic feedback by the input device.
///
/// The 0.0 to 1.0 strength of the haptic feedback based on the capability of the input device.
/// The duration in seconds or float.MaxValue for indefinite duration (if supported by the platform).
/// True if haptic feedback was successfully started.
bool StartHapticImpulse(float intensity, float durationInSeconds = float.MaxValue);
///
/// Terminates haptic feedback by the input device.
///
void StopHapticFeedback();
}
}