Interhaptics SDK for Unity 1.6
Loading...
Searching...
No Matches
Interhaptics.Platforms.GameInput.Samples.GameInputXInputHapticController Class Reference
Inheritance diagram for Interhaptics.Platforms.GameInput.Samples.GameInputXInputHapticController:

Public Member Functions

void DebugMode (string debugMessage)
 Debug method to print messages in the console only when debugMode is enabled.
 
void PlayAudioVibrationController (int indexButton)
 
void PlayEventVibrationController (int indexButton)
 
void PlaySpatialVibrationController (int indexButton)
 
void IncreaseIndexVibrations (bool isIncrementing)
 

Public Attributes

bool debugMode
 

Detailed Description

Definition at line 13 of file GameInputXInputHapticController.cs.

Member Function Documentation

◆ DebugMode()

void Interhaptics.Platforms.GameInput.Samples.GameInputXInputHapticController.DebugMode ( string debugMessage)

Debug method to print messages in the console only when debugMode is enabled.

Parameters
debugMessage

Definition at line 56 of file GameInputXInputHapticController.cs.

References Interhaptics.Platforms.GameInput.Samples.GameInputXInputHapticController.debugMode.

◆ IncreaseIndexVibrations()

void Interhaptics.Platforms.GameInput.Samples.GameInputXInputHapticController.IncreaseIndexVibrations ( bool isIncrementing)

Definition at line 206 of file GameInputXInputHapticController.cs.

207 {
208 if (canModifyVibrationType)
209 {
210 indexVibration = isIncrementing ? (indexVibration + 1) % 3 : (indexVibration + 2) % 3;
211 canModifyVibrationType = false;
212 }
213 VibrationHapticSourceGUI();
214 }

◆ PlayAudioVibrationController()

void Interhaptics.Platforms.GameInput.Samples.GameInputXInputHapticController.PlayAudioVibrationController ( int indexButton)

Definition at line 184 of file GameInputXInputHapticController.cs.

185 {
186 ResetHapticSources();
187 audioHapticSources[indexButton].PlayEventVibration();
188 vibrationMaterialName.text = audioHapticSources[indexButton].name;
189 }
override void PlayEventVibration()
Method to start the coroutine from outside (if necessary). Plays the haptic effect after the vibratio...

References Interhaptics.Utils.AudioHapticSource.PlayEventVibration().

◆ PlayEventVibrationController()

void Interhaptics.Platforms.GameInput.Samples.GameInputXInputHapticController.PlayEventVibrationController ( int indexButton)

Definition at line 191 of file GameInputXInputHapticController.cs.

192 {
193 ResetHapticSources();
194 eventHapticSources[indexButton].PlayEventVibration();
195 vibrationMaterialName.text = eventHapticSources[indexButton].name;
196 }
override void PlayEventVibration()
Method to start the coroutine from outside (if necessary). Plays the haptic effect after the vibratio...

◆ PlaySpatialVibrationController()

void Interhaptics.Platforms.GameInput.Samples.GameInputXInputHapticController.PlaySpatialVibrationController ( int indexButton)

Definition at line 198 of file GameInputXInputHapticController.cs.

199 {
200 ResetHapticSources();
201 spatialHapticSources[indexButton].GetComponent<ObjectTransform>().enabled = true;
202 spatialHapticSources[indexButton].GetComponent<ObjectTransform>().buttonPressed = true;
203 vibrationMaterialName.text = spatialHapticSources[indexButton].name;
204 }

Member Data Documentation

◆ debugMode

bool Interhaptics.Platforms.GameInput.Samples.GameInputXInputHapticController.debugMode

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