Beispiel #1
0
 public float GetAxis(int wandID, CAVE2.Axis axis)
 {
     if (wandControllers.ContainsKey(wandID))
     {
         OmicronController wandController = (OmicronController)wandControllers[wandID];
         float             axisValue      = wandController.GetAxis(axis);
         if (Mathf.Abs(axisValue) <= axisDeadzone)
         {
             axisValue = 0;
         }
         return(axisValue);
     }
     return(0);
 }
    public static string CAVE2ToGetReal3DAxis(CAVE2.Axis name)
    {
        switch (name)
        {
        case CAVE2.Axis.LeftAnalogStickLR: return("Yaw");

        case CAVE2.Axis.LeftAnalogStickUD: return("Forward");

        case CAVE2.Axis.RightAnalogStickLR: return("Strafe");

        case CAVE2.Axis.RightAnalogStickUD: return("Pitch");
        }
        return("");
    }
    public float GetAxis(CAVE2.Axis axis)
    {
        switch (axis)
        {
        case CAVE2.Axis.LeftAnalogStickLR: return(analogInput1.x);

        case CAVE2.Axis.LeftAnalogStickUD: return(analogInput1.y);

        case CAVE2.Axis.RightAnalogStickLR: return(analogInput2.x);

        case CAVE2.Axis.RightAnalogStickUD: return(analogInput2.x);

        case CAVE2.Axis.AnalogTriggerL: return(analogInput3.x);

        case CAVE2.Axis.LeftAnalogStickLR_Inverted: return(-analogInput1.x);

        case CAVE2.Axis.LeftAnalogStickUD_Inverted: return(-analogInput1.y);

        case CAVE2.Axis.AnalogTriggerL_Inverted: return(-analogInput3.x);
        }
        return(0);
    }
Beispiel #4
0
 public static float GetAxis(int wandID, CAVE2.Axis axis)
 {
     return(CAVE2Manager.GetAxis(wandID, axis));
 }
Beispiel #5
0
 public static float GetAxis(int wandID, CAVE2.Axis axis)
 {
     return(CAVE2.Input.GetAxis(wandID, axis));
 }
Beispiel #6
0
 public static string CAVE2ToGetReal3DAxis(CAVE2.Axis name)
 {
     return(CAVE2Manager.CAVE2ToGetReal3DAxis(name));
 }