|
@@ -8,12 +8,9 @@ public class ViveInput : MonoBehaviour
|
|
|
public PlayerReplay playerReplay;
|
|
|
public BodySourceView bsv;
|
|
|
|
|
|
- public SteamVR_Action_Vibration hapticAction;
|
|
|
-
|
|
|
private SteamVR_Action_Boolean grabPinch;
|
|
|
private SteamVR_Action_Boolean grabGrib;
|
|
|
private SteamVR_Action_Boolean teleport;
|
|
|
- //private SteamVR_Action_Vector2 trackpad;
|
|
|
|
|
|
private bool isRecording;
|
|
|
private float recordingTime;
|
|
@@ -88,31 +85,6 @@ public class ViveInput : MonoBehaviour
|
|
|
{
|
|
|
SteamVR_Actions.default_Haptic[SteamVR_Input_Sources.RightFoot].Execute(0, 1, 10, 1);
|
|
|
}
|
|
|
- if (Input.GetKeyDown(KeyCode.T))
|
|
|
- {
|
|
|
- SteamVR_Action_Vibration[] actions = SteamVR_Input.actionsVibration;
|
|
|
- actions[0].Execute(0, 1, 10, 1, SteamVR_Input_Sources.RightFoot);
|
|
|
- Debug.Log("debug: " + actions.Length);
|
|
|
- }
|
|
|
-
|
|
|
- if (Input.GetKeyDown(KeyCode.A))
|
|
|
- {
|
|
|
- hapticAction.Execute(0, 1, 10, 1, SteamVR_Input_Sources.LeftHand);
|
|
|
- }
|
|
|
- if (Input.GetKeyDown(KeyCode.S))
|
|
|
- {
|
|
|
- hapticAction.Execute(0, 1, 10, 1, SteamVR_Input_Sources.RightHand);
|
|
|
- }
|
|
|
- if (Input.GetKeyDown(KeyCode.D))
|
|
|
- {
|
|
|
- hapticAction.Execute(0, 1, 10, 1, SteamVR_Input_Sources.LeftFoot);
|
|
|
- }
|
|
|
- if (Input.GetKeyDown(KeyCode.F))
|
|
|
- {
|
|
|
- hapticAction.Execute(0, 1, 10, 1, SteamVR_Input_Sources.RightFoot);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
public static IEnumerator WaitForControllerPress()
|