Skip to content

Commit 528eb19

Browse files
committed
Haptic error fix
1 parent 3eada60 commit 528eb19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/SteamVR/Input/SteamVR_Action_Vibration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public void RemoveAllListeners()
234234
/// <param name="inputSource">The device you would like to execute the haptic action. Any if the action is not device specific.</param>
235235
public void Execute(float secondsFromNow, float durationSeconds, float frequency, float amplitude)
236236
{
237-
if (SteamVR_Input.isStartupFrame)
237+
if (SteamVR_Input.isStartupFrame || OpenVR.Input == null)
238238
return;
239239

240240
timeLastExecuted = Time.realtimeSinceStartup;

0 commit comments

Comments
 (0)