Interhaptics SDK for Unity 1.6
Loading...
Searching...
No Matches
Interhaptics.Core.GlobalHapticIntensityController Class Reference
Inheritance diagram for Interhaptics.Core.GlobalHapticIntensityController:

Public Member Functions

delegate void OnIntensityChange (double newIntensity)
 
void StopAllHaptics ()
 
void ResumeAllHaptics ()
 
void DebugMode (string debugMessage)
 
void SetGlobalIntensity (double newIntensity)
 
void SetIntensity ()
 
double GetCurrentIntensity ()
 
void OnIntensitySliderChanged (float newIntensity)
 
void LogCurrentIntensity ()
 

Public Attributes

double globalIntensity = 1.0
 
bool debugMode = false
 

Events

OnIntensityChange onIntensityChanged
 

Detailed Description

Definition at line 7 of file GlobalHapticIntensityController.cs.

Member Function Documentation

◆ DebugMode()

◆ GetCurrentIntensity()

double Interhaptics.Core.GlobalHapticIntensityController.GetCurrentIntensity ( )

Definition at line 97 of file GlobalHapticIntensityController.cs.

98 {
99 return HAR.GetGlobalIntensity();
100 }

Referenced by Interhaptics.Core.GlobalHapticIntensityController.LogCurrentIntensity().

◆ LogCurrentIntensity()

void Interhaptics.Core.GlobalHapticIntensityController.LogCurrentIntensity ( )

◆ OnIntensityChange()

delegate void Interhaptics.Core.GlobalHapticIntensityController.OnIntensityChange ( double newIntensity)

◆ OnIntensitySliderChanged()

void Interhaptics.Core.GlobalHapticIntensityController.OnIntensitySliderChanged ( float newIntensity)

◆ ResumeAllHaptics()

void Interhaptics.Core.GlobalHapticIntensityController.ResumeAllHaptics ( )

◆ SetGlobalIntensity()

◆ SetIntensity()

void Interhaptics.Core.GlobalHapticIntensityController.SetIntensity ( )

Definition at line 90 of file GlobalHapticIntensityController.cs.

91 {
92 HAR.SetGlobalIntensity(globalIntensity);
93 DebugMode($"Global haptic intensity set to: {globalIntensity}");
94 }

References Interhaptics.Core.GlobalHapticIntensityController.DebugMode(), and Interhaptics.Core.GlobalHapticIntensityController.globalIntensity.

◆ StopAllHaptics()

void Interhaptics.Core.GlobalHapticIntensityController.StopAllHaptics ( )

Member Data Documentation

◆ debugMode

bool Interhaptics.Core.GlobalHapticIntensityController.debugMode = false

◆ globalIntensity

Event Documentation

◆ onIntensityChanged

OnIntensityChange Interhaptics.Core.GlobalHapticIntensityController.onIntensityChanged

The documentation for this class was generated from the following file: