public VRControllerAxis_t rAxis4;          // 0x34

        // Constructors
        public VRControllerState_t_Packed(VRControllerState_t unpacked)
        {
            unPacketNum     = default;
            ulButtonPressed = default;
            ulButtonTouched = default;
            rAxis0          = default;
            rAxis1          = default;
            rAxis2          = default;
            rAxis3          = default;
            rAxis4          = default;
        }         // 0x00000001801DA3F0-0x00000001801DA490
Exemple #2
0
 float calculateAngle(Valve.VR.VRControllerAxis_t coor)
 {
     return(Mathf.Atan2(coor.y, coor.x) * Mathf.Rad2Deg);
 }