VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
void AVR.Core.AVR_Controller.HapticPulse ( float  amplitude,
float  duration 
)
inline

Performs a haptic pulse on this controller (if available)

Parameters
amplitudeNormalized amplitude of the pulse. Must be in [0, 1]
durationDuration of the pulse in seconds.

Definition at line 60 of file AVR_Controller.cs.

60  {
61  if (GetHapticCapabilities().supportsImpulse)
62  {
63  inputDevice.SendHapticImpulse(0u, amplitude, duration);
64  }
65  }
HapticCapabilities GetHapticCapabilities()
Returns the haptic capabilites of this controller.