private void OnVector2Update(Valve.VR.SteamVR_Action_Vector2 from, Valve.VR.SteamVR_Input_Sources inputSource, Vector2 axis, Vector2 delta) { if (Mathf.Abs(axis.y) >= 0.5f) { var pos = mPlayer.position; pos.y += axis.y * Time.deltaTime * 10.0f; mPlayer.position = pos; var tpPos = TPArea.transform.position; tpPos.y += axis.y * Time.deltaTime * 10.0f; TPArea.transform.position = tpPos; } if (Mathf.Abs(axis.x) >= 0.5f) { var currentRot = mPlayer.transform.rotation.eulerAngles; currentRot.y += axis.x * Time.deltaTime * 50.0f; mPlayer.transform.rotation = Quaternion.Euler(currentRot); } }
private static void PreInitActions() { SteamVR_Actions.p_default_Trigger = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Trigger"))); SteamVR_Actions.p_default_PadNorthTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadNorthTouch"))); SteamVR_Actions.p_default_PadEastTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadEastTouch"))); SteamVR_Actions.p_default_PadSouthTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadSouthTouch"))); SteamVR_Actions.p_default_PadWestTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadWestTouch"))); SteamVR_Actions.p_default_PadNorthClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadNorthClick"))); SteamVR_Actions.p_default_PadEastClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadEastClick"))); SteamVR_Actions.p_default_PadSouthClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadSouthClick"))); SteamVR_Actions.p_default_PadWestClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadWestClick"))); SteamVR_Actions.p_default_PadCenterTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadCenterTouch"))); SteamVR_Actions.p_default_PadCenterClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadCenterClick"))); SteamVR_Actions.p_default_PadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/PadPosition"))); SteamVR_Actions.p_default_Grip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Grip"))); SteamVR_Actions.p_default_MenuClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/MenuClick"))); SteamVR_Actions.p_default_JoystickClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/JoystickClick"))); SteamVR_Actions.p_default_JoystickPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/JoystickPosition"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_TriggerClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TriggerClick"))); SteamVR_Actions.p_default_PadClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadClick"))); SteamVR_Actions.p_default_Menu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Menu"))); SteamVR_Actions.p_default_Grip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Grip"))); SteamVR_Actions.p_default_PadTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadTouch"))); SteamVR_Actions.p_default_TriggerTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TriggerTouch"))); SteamVR_Actions.p_default_PadTouchValue = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/PadTouchValue"))); SteamVR_Actions.p_default_TriggerValue = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/TriggerValue"))); SteamVR_Actions.p_default_DPadNorth = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/DPadNorth"))); SteamVR_Actions.p_default_DPadSouth = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/DPadSouth"))); SteamVR_Actions.p_default_DPadWest = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/DPadWest"))); SteamVR_Actions.p_default_DPadEast = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/DPadEast"))); SteamVR_Actions.p_default_DPadCenter = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/DPadCenter"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_ToggleSubtreeLines = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/ToggleSubtreeLines"))); SteamVR_Actions.p_default_SelectSubtree = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SelectSubtree"))); SteamVR_Actions.p_default_CopySubtree = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/CopySubtree"))); SteamVR_Actions.p_default_ChangeSubtreeHeight = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/ChangeSubtreeHeight"))); SteamVR_Actions.p_default_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/Move"))); SteamVR_Actions.p_default_LoadFile = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/LoadFile"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/platformer/in/Move"))); SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/platformer/in/Jump"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); SteamVR_Actions.p_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_TouchpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TouchpadPosition"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_master_Thesis_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Master_Thesis/in/Teleport"))); SteamVR_Actions.p_master_Thesis_Move = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Master_Thesis/in/Move"))); SteamVR_Actions.p_master_Thesis_TouchpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/Master_Thesis/in/TouchpadPosition"))); SteamVR_Actions.p_master_Thesis_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/Master_Thesis/in/Pose"))); SteamVR_Actions.p_master_Thesis_Grip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Master_Thesis/in/Grip"))); SteamVR_Actions.p_master_Thesis_Trigger = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Master_Thesis/in/Trigger"))); SteamVR_Actions.p_master_Thesis_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/Master_Thesis/out/Haptic"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_Grab = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Grab"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_PoseLeftHand = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/PoseLeftHand"))); SteamVR_Actions.p_default_PoseRightHand = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/PoseRightHand"))); SteamVR_Actions.p_default_NewAction = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/NewAction"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); SteamVR_Actions.p_control_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/control/in/SkeletonLeftHand"))); SteamVR_Actions.p_control_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/control/in/SkeletonRightHand"))); SteamVR_Actions.p_control_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/control/in/Teleport"))); SteamVR_Actions.p_control_Grab = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/control/in/Grab"))); SteamVR_Actions.p_control_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/control/in/Pose"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_Restart = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Restart"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/platformer/in/Move"))); SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/platformer/in/Jump"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); SteamVR_Actions.p_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_Grip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Grip"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_ThrustUp = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/ThrustUp"))); SteamVR_Actions.p_default_ThrustDown = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/ThrustDown"))); SteamVR_Actions.p_default_RollMode = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/RollMode"))); SteamVR_Actions.p_default_Interact = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Interact"))); SteamVR_Actions.p_default_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Jump"))); SteamVR_Actions.p_default_Back = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Back"))); SteamVR_Actions.p_default_Menu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Menu"))); SteamVR_Actions.p_default_Map = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Map"))); SteamVR_Actions.p_default_Look = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/Look"))); SteamVR_Actions.p_default_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/Move"))); SteamVR_Actions.p_default_LeftHand = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/LeftHand"))); SteamVR_Actions.p_default_RightHand = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/RightHand"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_Pointer = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Pointer"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_Use = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Use"))); SteamVR_Actions.p_default_Grab = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Grab"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create<SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create<SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create<SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create<SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_TouchpadAxis = ((SteamVR_Action_Vector2)(SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/default/in/TouchpadAxis"))); SteamVR_Actions.p_default_SnapTurnLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/SnapTurnLeft"))); SteamVR_Actions.p_default_SnapTurnRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/SnapTurnRight"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create<SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/platformer/in/Move"))); SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/platformer/in/Jump"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create<SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); SteamVR_Actions.p_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create<SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_Spawn = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Spawn"))); SteamVR_Actions.p_default_TouchPadTouch = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TouchPadTouch"))); SteamVR_Actions.p_default_TouchPadDetect = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TouchPadDetect"))); SteamVR_Actions.p_default_TouchPadClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TouchPadClick"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/platformer/in/Move"))); SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/platformer/in/Jump"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_TrackPad = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TrackPad"))); SteamVR_Actions.p_default_PadClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadClick"))); SteamVR_Actions.p_default_PadTouching = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PadTouching"))); SteamVR_Actions.p_default_OpenMenu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/OpenMenu"))); SteamVR_Actions.p_default_TriggerClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TriggerClick"))); SteamVR_Actions.p_default_TriggerDrag = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/TriggerDrag"))); SteamVR_Actions.p_default_GripClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GripClick"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/platformer/in/Move"))); SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/platformer/in/Jump"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); SteamVR_Actions.p_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera"))); }
private static void PreInitActions() { SteamVR_Actions.p_vRIF_LeftGrip = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/VRIF/in/LeftGrip"))); SteamVR_Actions.p_vRIF_RightGrip = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/VRIF/in/RightGrip"))); SteamVR_Actions.p_vRIF_AButton = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/AButton"))); SteamVR_Actions.p_vRIF_BButton = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/BButton"))); SteamVR_Actions.p_vRIF_XButton = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/XButton"))); SteamVR_Actions.p_vRIF_YButton = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/YButton"))); SteamVR_Actions.p_vRIF_LeftTrigger = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/VRIF/in/LeftTrigger"))); SteamVR_Actions.p_vRIF_RightTrigger = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/VRIF/in/RightTrigger"))); SteamVR_Actions.p_vRIF_LeftTriggerNear = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/LeftTriggerNear"))); SteamVR_Actions.p_vRIF_RightTriggerNear = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/RightTriggerNear"))); SteamVR_Actions.p_vRIF_LeftThumbstickAxis = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/VRIF/in/LeftThumbstickAxis"))); SteamVR_Actions.p_vRIF_RightThumbstickAxis = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/VRIF/in/RightThumbstickAxis"))); SteamVR_Actions.p_vRIF_LeftThumbstickNear = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/LeftThumbstickNear"))); SteamVR_Actions.p_vRIF_RightThumbstickNear = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/RightThumbstickNear"))); SteamVR_Actions.p_vRIF_LeftThumbstickDown = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/LeftThumbstickDown"))); SteamVR_Actions.p_vRIF_RightThumbstickDown = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/RightThumbstickDown"))); SteamVR_Actions.p_vRIF_Start = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/Start"))); SteamVR_Actions.p_vRIF_Back = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRIF/in/Back"))); SteamVR_Actions.p_vRIF_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/VRIF/out/Haptic"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_SnapTurnLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnLeft"))); SteamVR_Actions.p_default_SnapTurnRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnRight"))); SteamVR_Actions.p_default_TrackPadUp = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TrackPadUp"))); SteamVR_Actions.p_default_TrackPadDown = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TrackPadDown"))); SteamVR_Actions.p_default_TrackPadLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TrackPadLeft"))); SteamVR_Actions.p_default_TrackPadRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TrackPadRight"))); SteamVR_Actions.p_default_TrackPadClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TrackPadClick"))); SteamVR_Actions.p_default_TrackPadVec2 = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TrackPadVec2"))); SteamVR_Actions.p_default_Trigger = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Trigger"))); SteamVR_Actions.p_default_Menu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Menu"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_SnapTurnLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnLeft"))); SteamVR_Actions.p_default_SnapTurnRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnRight"))); SteamVR_Actions.p_default_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/Move"))); SteamVR_Actions.p_default_Fire = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Fire"))); SteamVR_Actions.p_default_FingeringTrigger = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/FingeringTrigger"))); SteamVR_Actions.p_default_ammoRelease = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/ammoRelease"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_primaryGunHand_Fire = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/PrimaryGunHand/in/Fire"))); SteamVR_Actions.p_primaryGunHand_TouchTrigger = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/PrimaryGunHand/in/TouchTrigger"))); SteamVR_Actions.p_primaryGunHand_SqueezeTrigger = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/PrimaryGunHand/in/SqueezeTrigger"))); SteamVR_Actions.p_primaryGunHand_AmmoRelease = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/PrimaryGunHand/in/AmmoRelease"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_SnapTurnLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnLeft"))); SteamVR_Actions.p_default_SnapTurnRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnRight"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/platformer/in/Move"))); SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/platformer/in/Jump"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); SteamVR_Actions.p_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera"))); SteamVR_Actions.p_forTeddyVR_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/ForTeddyVR/in/Move"))); SteamVR_Actions.p_forTeddyVR_Grab = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/ForTeddyVR/in/Grab"))); SteamVR_Actions.p_forTeddyVR_Trigger = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/ForTeddyVR/in/Trigger"))); SteamVR_Actions.p_forTeddyVR_Look = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/ForTeddyVR/in/Look"))); SteamVR_Actions.p_forTeddyVR_Menu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/ForTeddyVR/in/Menu"))); SteamVR_Actions.p_forTeddyVR_Run = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/ForTeddyVR/in/Run"))); SteamVR_Actions.p_forTeddyVR_Focus = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/ForTeddyVR/in/Focus"))); SteamVR_Actions.p_forTeddyVR_LookSwipe = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/ForTeddyVR/in/LookSwipe"))); SteamVR_Actions.p_forTeddyVR_VibrationL = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/ForTeddyVR/out/VibrationL"))); SteamVR_Actions.p_forTeddyVR_VibrationR = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/ForTeddyVR/out/VibrationR"))); SteamVR_Actions.p_forTeddyArcade_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/ForTeddyArcade/in/Move"))); SteamVR_Actions.p_forTeddyArcade_Look = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/ForTeddyArcade/in/Look"))); SteamVR_Actions.p_forTeddyArcade_Exit = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/ForTeddyArcade/in/Exit"))); SteamVR_Actions.p_forTeddyArcade_VibrationL = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/ForTeddyArcade/out/VibrationL"))); SteamVR_Actions.p_forTeddyArcade_VibrationR = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/ForTeddyArcade/out/VibrationR"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/platformer/in/Move"))); SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/platformer/in/Jump"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); SteamVR_Actions.p_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera"))); SteamVR_Actions.p_vrcontrol_ForwardThrust = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/vrcontrol/in/ForwardThrust"))); SteamVR_Actions.p_vrcontrol_BackwardThrust = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/vrcontrol/in/BackwardThrust"))); SteamVR_Actions.p_vrcontrol_Boost = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrcontrol/in/Boost"))); SteamVR_Actions.p_vrcontrol_HVThrust = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/vrcontrol/in/HVThrust"))); SteamVR_Actions.p_vrcontrol_PitchRoll = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/vrcontrol/in/PitchRoll"))); SteamVR_Actions.p_vrcontrol_GrabJoystick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrcontrol/in/GrabJoystick"))); SteamVR_Actions.p_vrcontrol_Left_A = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrcontrol/in/Left_A"))); SteamVR_Actions.p_vrcontrol_Right_A = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrcontrol/in/Right A"))); SteamVR_Actions.p_vrcontrol_Left_B = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrcontrol/in/Left_B"))); SteamVR_Actions.p_vrcontrol_POV1_POS = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/vrcontrol/in/POV1_POS"))); SteamVR_Actions.p_vrcontrol_POV2_POS = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/vrcontrol/in/POV2_POS"))); SteamVR_Actions.p_vrcontrol_POV1_TOUCH = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrcontrol/in/POV1_TOUCH"))); SteamVR_Actions.p_vrcontrol_POV2_TOUCH = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrcontrol/in/POV2_TOUCH"))); SteamVR_Actions.p_vrcontrol_UI_ENTER = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrcontrol/in/UI_ENTER"))); SteamVR_Actions.p_vrcontrol_UI_BACK = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrcontrol/in/UI_BACK"))); SteamVR_Actions.p_vrcontrol_GripLeft = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/vrcontrol/in/GripLeft"))); SteamVR_Actions.p_vrcontrol_GripRight = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/vrcontrol/in/GripRight"))); }
private static void PreInitActions() { SteamVR_Actions.p_vrtk_TouchpadButton = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/TouchpadButton"))); SteamVR_Actions.p_vrtk_TriggerButton = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/TriggerButton"))); SteamVR_Actions.p_vrtk_GripButton = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/GripButton"))); SteamVR_Actions.p_vrtk_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/vrtk/in/Pose"))); SteamVR_Actions.p_vrtk_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/vrtk/in/SkeletonLeftHand"))); SteamVR_Actions.p_vrtk_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/vrtk/in/SkeletonRightHand"))); SteamVR_Actions.p_vrtk_TriggerSqueeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/vrtk/in/TriggerSqueeze"))); SteamVR_Actions.p_vrtk_TouchpadTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/TouchpadTouch"))); SteamVR_Actions.p_vrtk_TouchpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/vrtk/in/TouchpadPosition"))); SteamVR_Actions.p_vrtk_ButtonStartMenu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/ButtonStartMenu"))); SteamVR_Actions.p_vrtk_TriggerTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/TriggerTouch"))); SteamVR_Actions.p_vrtk_TouchpadTwoTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/TouchpadTwoTouch"))); SteamVR_Actions.p_vrtk_TouchpadTwoPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/vrtk/in/TouchpadTwoPosition"))); SteamVR_Actions.p_vrtk_TouchpadTwoButton = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/TouchpadTwoButton"))); SteamVR_Actions.p_vrtk_GripTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/GripTouch"))); SteamVR_Actions.p_vrtk_GripSqueeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/vrtk/in/GripSqueeze"))); SteamVR_Actions.p_vrtk_ButtonOneTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/ButtonOneTouch"))); SteamVR_Actions.p_vrtk_ButtonOneClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/ButtonOneClick"))); SteamVR_Actions.p_vrtk_ButtonTwoTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/ButtonTwoTouch"))); SteamVR_Actions.p_vrtk_ButtonTwoClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/vrtk/in/ButtonTwoClick"))); SteamVR_Actions.p_vrtk_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/vrtk/out/Haptic"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_SnapTurnLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnLeft"))); SteamVR_Actions.p_default_SnapTurnRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnRight"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_menu_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/menu/in/InteractUI"))); SteamVR_Actions.p_menu_CloseMenu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/menu/in/CloseMenu"))); SteamVR_Actions.p_menu_BackUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/menu/in/BackUI"))); SteamVR_Actions.p_menu_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/menu/out/Haptic"))); SteamVR_Actions.p_graph_Spin = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/graph/in/Spin"))); SteamVR_Actions.p_graph_ChangeVars = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/graph/in/ChangeVars"))); SteamVR_Actions.p_graph_Scale_Move = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/graph/in/Scale&Move"))); SteamVR_Actions.p_graph_OpenMenu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/graph/in/OpenMenu"))); SteamVR_Actions.p_graph_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/graph/out/Haptic"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_valheim_ToggleInventory = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/ToggleInventory"))); SteamVR_Actions.p_valheim_ToggleMenu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/ToggleMenu"))); SteamVR_Actions.p_valheim_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/Jump"))); SteamVR_Actions.p_valheim_Use = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/Use"))); SteamVR_Actions.p_valheim_Sit = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/Sit"))); SteamVR_Actions.p_valheim_PitchAndYaw = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/Valheim/in/PitchAndYaw"))); SteamVR_Actions.p_valheim_PoseL = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/Valheim/in/PoseL"))); SteamVR_Actions.p_valheim_PoseR = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/Valheim/in/PoseR"))); SteamVR_Actions.p_valheim_HotbarUp = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/HotbarUp"))); SteamVR_Actions.p_valheim_HotbarDown = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/HotbarDown"))); SteamVR_Actions.p_valheim_HotbarScroll = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/Valheim/in/HotbarScroll"))); SteamVR_Actions.p_valheim_ToggleMap = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/ToggleMap"))); SteamVR_Actions.p_valheim_HotbarUse = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/HotbarUse"))); SteamVR_Actions.p_valheim_ContextScroll = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/Valheim/in/ContextScroll"))); SteamVR_Actions.p_valheim_Grab = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/Grab"))); SteamVR_Actions.p_valheim_QuickSwitch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/QuickSwitch"))); SteamVR_Actions.p_valheim_Walk = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/Valheim/in/Walk"))); SteamVR_Actions.p_valheim_UseLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/UseLeft"))); SteamVR_Actions.p_valheim_QuickActions = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Valheim/in/QuickActions"))); SteamVR_Actions.p_valheim_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/Valheim/out/Haptic"))); SteamVR_Actions.p_laserPointers_LeftClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/LaserPointers/in/LeftClick"))); SteamVR_Actions.p_laserPointers_RightClick = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/LaserPointers/in/RightClick"))); SteamVR_Actions.p_laserPointers_ClickModifier = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/LaserPointers/in/ClickModifier"))); }
private static void PreInitActions() { SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_SummonBall = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SummonBall"))); SteamVR_Actions.p_default_ToggleGlow = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/ToggleGlow"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_SnapTurnLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnLeft"))); SteamVR_Actions.p_default_SnapTurnRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnRight"))); SteamVR_Actions.p_default_Sticky = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Sticky"))); SteamVR_Actions.p_default_Bounce = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Bounce"))); SteamVR_Actions.p_default_BallCamera = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/BallCamera"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/platformer/in/Move"))); SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/platformer/in/Jump"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); SteamVR_Actions.p_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera"))); }
public static void Dynamic_InitializeInstanceActions() { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_InteractUI"))); Valve.VR.SteamVR_Input.__actions_default_in_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_Teleport"))); Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabPinch"))); Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabGrip"))); Valve.VR.SteamVR_Input.__actions_default_in_Pose = ((SteamVR_Action_Pose)(SteamVR_Input_References.GetAction("__actions_default_in_Pose"))); Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonLeftHand"))); Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonRightHand"))); Valve.VR.SteamVR_Input.__actions_default_in_Squeeze = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_default_in_Squeeze"))); Valve.VR.SteamVR_Input.__actions_default_out_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Input_References.GetAction("__actions_default_out_Haptic"))); Valve.VR.SteamVR_Input.__actions_platformer_in_Move = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_platformer_in_Move"))); Valve.VR.SteamVR_Input.__actions_platformer_in_Jump = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_platformer_in_Jump"))); Valve.VR.SteamVR_Input.__actions_buggy_in_Steering = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_buggy_in_Steering"))); Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_buggy_in_Throttle"))); Valve.VR.SteamVR_Input.__actions_buggy_in_Brake = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_buggy_in_Brake"))); Valve.VR.SteamVR_Input.__actions_buggy_in_Reset = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_buggy_in_Reset"))); Valve.VR.SteamVR_Input.actions = new Valve.VR.SteamVR_Action[] { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.__actions_default_in_Teleport, Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_default_in_Pose, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.__actions_default_out_Haptic, Valve.VR.SteamVR_Input.__actions_platformer_in_Move, Valve.VR.SteamVR_Input.__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggy_in_Reset }; Valve.VR.SteamVR_Input.actionsIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.__actions_default_in_Teleport, Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_default_in_Pose, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.__actions_platformer_in_Move, Valve.VR.SteamVR_Input.__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggy_in_Reset }; Valve.VR.SteamVR_Input.actionsOut = new Valve.VR.SteamVR_Action_Out[] { Valve.VR.SteamVR_Input.__actions_default_out_Haptic }; Valve.VR.SteamVR_Input.actionsVibration = new Valve.VR.SteamVR_Action_Vibration[] { Valve.VR.SteamVR_Input.__actions_default_out_Haptic }; Valve.VR.SteamVR_Input.actionsPose = new Valve.VR.SteamVR_Action_Pose[] { Valve.VR.SteamVR_Input.__actions_default_in_Pose }; Valve.VR.SteamVR_Input.actionsBoolean = new Valve.VR.SteamVR_Action_Boolean[] { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.__actions_default_in_Teleport, Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggy_in_Reset }; Valve.VR.SteamVR_Input.actionsSingle = new Valve.VR.SteamVR_Action_Single[] { Valve.VR.SteamVR_Input.__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle }; Valve.VR.SteamVR_Input.actionsVector2 = new Valve.VR.SteamVR_Action_Vector2[] { Valve.VR.SteamVR_Input.__actions_platformer_in_Move, Valve.VR.SteamVR_Input.__actions_buggy_in_Steering }; Valve.VR.SteamVR_Input.actionsVector3 = new Valve.VR.SteamVR_Action_Vector3[0]; Valve.VR.SteamVR_Input.actionsSkeleton = new Valve.VR.SteamVR_Action_Skeleton[] { Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand }; Valve.VR.SteamVR_Input.actionsNonPoseNonSkeletonIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.__actions_default_in_Teleport, Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.__actions_platformer_in_Move, Valve.VR.SteamVR_Input.__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggy_in_Reset }; }
private void OnGUI() { if (labelStyle == null) { labelStyle = new GUIStyle(EditorStyles.textField); labelStyle.normal.background = Texture2D.whiteTexture; } scrollPosition = EditorGUILayout.BeginScrollView(scrollPosition); Color defaultColor = GUI.backgroundColor; SteamVR_ActionSet[] actionSets = SteamVR_Input.actionSets; if (actionSets == null) { actionSets = SteamVR_Input_References.instance.actionSetObjects; } SteamVR_Input_Sources[] sources = SteamVR_Input_Source.GetUpdateSources(); for (int sourceIndex = 0; sourceIndex < sources.Length; sourceIndex++) { SteamVR_Input_Sources source = sources[sourceIndex]; EditorGUILayout.LabelField(source.ToString()); for (int actionSetIndex = 0; actionSetIndex < actionSets.Length; actionSetIndex++) { SteamVR_ActionSet set = actionSets[actionSetIndex]; string activeText = set.IsActive() ? "Active" : "Inactive"; float setLastChanged = set.GetTimeLastChanged(); if (setLastChanged != -1) { float timeSinceLastChanged = Time.time - setLastChanged; if (timeSinceLastChanged < 1) { Color setColor = Color.Lerp(Color.green, defaultColor, timeSinceLastChanged); GUI.backgroundColor = setColor; } } EditorGUILayout.LabelField(set.GetShortName(), activeText, labelStyle); GUI.backgroundColor = defaultColor; EditorGUI.indentLevel++; for (int actionIndex = 0; actionIndex < set.allActions.Length; actionIndex++) { SteamVR_Action action = set.allActions[actionIndex]; if (action.actionSet == null || action.actionSet.IsActive() == false) { EditorGUILayout.LabelField(action.GetShortName(), "-", labelStyle); continue; } float actionLastChanged = action.GetTimeLastChanged(source); string actionText = ""; float timeSinceLastChanged = -1; if (actionLastChanged != -1) { timeSinceLastChanged = Time.time - actionLastChanged; if (timeSinceLastChanged < 1) { Color setColor = Color.Lerp(Color.green, defaultColor, timeSinceLastChanged); GUI.backgroundColor = setColor; } } if (action is SteamVR_Action_Boolean) { SteamVR_Action_Boolean actionBoolean = (SteamVR_Action_Boolean)action; actionText = actionBoolean.GetState(source).ToString(); } else if (action is SteamVR_Action_Single) { SteamVR_Action_Single actionSingle = (SteamVR_Action_Single)action; actionText = actionSingle.GetAxis(source).ToString("0.0000"); } else if (action is SteamVR_Action_Vector2) { SteamVR_Action_Vector2 actionVector2 = (SteamVR_Action_Vector2)action; actionText = string.Format("({0:0.0000}, {1:0.0000})", actionVector2.GetAxis(source).x, actionVector2.GetAxis(source).y); } else if (action is SteamVR_Action_Vector3) { SteamVR_Action_Vector3 actionVector3 = (SteamVR_Action_Vector3)action; Vector3 axis = actionVector3.GetAxis(source); actionText = string.Format("({0:0.0000}, {1:0.0000}, {2:0.0000})", axis.x, axis.y, axis.z); } else if (action is SteamVR_Action_Pose) { SteamVR_Action_Pose actionPose = (SteamVR_Action_Pose)action; Vector3 position = actionPose.GetLocalPosition(source); Quaternion rotation = actionPose.GetLocalRotation(source); actionText = string.Format("({0:0.0000}, {1:0.0000}, {2:0.0000}) : ({3:0.0000}, {4:0.0000}, {5:0.0000}, {6:0.0000})", position.x, position.y, position.z, rotation.x, rotation.y, rotation.z, rotation.w); } else if (action is SteamVR_Action_Skeleton) { SteamVR_Action_Skeleton actionSkeleton = (SteamVR_Action_Skeleton)action; Vector3 position = actionSkeleton.GetLocalPosition(source); Quaternion rotation = actionSkeleton.GetLocalRotation(source); actionText = string.Format("({0:0.0000}, {1:0.0000}, {2:0.0000}) : ({3:0.0000}, {4:0.0000}, {5:0.0000}, {6:0.0000})", position.x, position.y, position.z, rotation.x, rotation.y, rotation.z, rotation.w); } else if (action is SteamVR_Action_Vibration) { //SteamVR_Input_Action_Vibration actionVibration = (SteamVR_Input_Action_Vibration)action; if (timeSinceLastChanged == -1) { actionText = "never used"; } actionText = string.Format("{0:0} seconds since last used", timeSinceLastChanged); } EditorGUILayout.LabelField(action.GetShortName(), actionText, labelStyle); GUI.backgroundColor = defaultColor; } EditorGUILayout.Space(); } EditorGUI.indentLevel--; } EditorGUILayout.EndScrollView(); }
public static void Dynamic_InitializeInstanceActions() { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_InteractUI"))); Valve.VR.SteamVR_Input.@__actions_default_in_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_Teleport"))); Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabPinch"))); Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabGrip"))); Valve.VR.SteamVR_Input.@__actions_default_in_Pose = ((SteamVR_Action_Pose)(SteamVR_Input_References.GetAction("__actions_default_in_Pose"))); Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonLeftHand"))); Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonRightHand"))); Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_default_in_Squeeze"))); Valve.VR.SteamVR_Input.@__actions_default_in_Shoot = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_Shoot"))); Valve.VR.SteamVR_Input.@__actions_default_out_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Input_References.GetAction("__actions_default_out_Haptic"))); Valve.VR.SteamVR_Input.@__actions_platformer_in_Move = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_platformer_in_Move"))); Valve.VR.SteamVR_Input.@__actions_platformer_in_Jump = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_platformer_in_Jump"))); Valve.VR.SteamVR_Input.@__actions_buggy_in_Steering = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_buggy_in_Steering"))); Valve.VR.SteamVR_Input.@__actions_buggy_in_Throttle = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_buggy_in_Throttle"))); Valve.VR.SteamVR_Input.@__actions_buggy_in_Brake = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_buggy_in_Brake"))); Valve.VR.SteamVR_Input.@__actions_buggy_in_Reset = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_buggy_in_Reset"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_00 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_00"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_01 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_01"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_02 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_02"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_03 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_03"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_04 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_04"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_05 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_05"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_06 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_06"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_07 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_07"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_31 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_31"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_32 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_32"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_33 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_33"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_34 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_press_34"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_00 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_00"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_01 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_01"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_02 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_02"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_03 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_03"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_04 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_04"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_05 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_05"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_06 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_06"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_07 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_07"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_31 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_31"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_32 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_32"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_33 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_33"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_34 = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_touch_34"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0x = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_0x"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0y = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_0y"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1x = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_1x"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1y = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_1y"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2x = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_2x"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2y = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_2y"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3x = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_3x"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3y = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_3y"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4x = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_4x"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4y = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_4y"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0xy = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_0xy"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1xy = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_1xy"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2xy = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_2xy"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3xy = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_3xy"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4xy = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_htc_viu_in_viu_axis_4xy"))); Valve.VR.SteamVR_Input.@__actions_htc_viu_out_viu_vib_01 = ((SteamVR_Action_Vibration)(SteamVR_Input_References.GetAction("__actions_htc_viu_out_viu_vib_01"))); Valve.VR.SteamVR_Input.actions = new Valve.VR.SteamVR_Action[] { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.@__actions_default_in_Teleport, Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.@__actions_default_in_Pose, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.@__actions_default_in_Shoot, Valve.VR.SteamVR_Input.@__actions_default_out_Haptic, Valve.VR.SteamVR_Input.@__actions_platformer_in_Move, Valve.VR.SteamVR_Input.@__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.@__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.@__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.@__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.@__actions_buggy_in_Reset, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_00, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_01, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_02, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_03, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_04, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_05, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_06, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_07, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_31, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_32, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_33, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_34, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_00, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_01, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_02, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_03, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_04, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_05, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_06, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_07, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_31, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_32, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_33, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_34, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_out_viu_vib_01 }; Valve.VR.SteamVR_Input.actionsIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.@__actions_default_in_Teleport, Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.@__actions_default_in_Pose, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.@__actions_default_in_Shoot, Valve.VR.SteamVR_Input.@__actions_platformer_in_Move, Valve.VR.SteamVR_Input.@__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.@__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.@__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.@__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.@__actions_buggy_in_Reset, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_00, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_01, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_02, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_03, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_04, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_05, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_06, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_07, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_31, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_32, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_33, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_34, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_00, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_01, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_02, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_03, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_04, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_05, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_06, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_07, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_31, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_32, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_33, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_34, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4xy }; Valve.VR.SteamVR_Input.actionsOut = new Valve.VR.SteamVR_Action_Out[] { Valve.VR.SteamVR_Input.@__actions_default_out_Haptic, Valve.VR.SteamVR_Input.@__actions_htc_viu_out_viu_vib_01 }; Valve.VR.SteamVR_Input.actionsVibration = new Valve.VR.SteamVR_Action_Vibration[] { Valve.VR.SteamVR_Input.@__actions_default_out_Haptic, Valve.VR.SteamVR_Input.@__actions_htc_viu_out_viu_vib_01 }; Valve.VR.SteamVR_Input.actionsPose = new Valve.VR.SteamVR_Action_Pose[] { Valve.VR.SteamVR_Input.@__actions_default_in_Pose }; Valve.VR.SteamVR_Input.actionsBoolean = new Valve.VR.SteamVR_Action_Boolean[] { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.@__actions_default_in_Teleport, Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.@__actions_default_in_Shoot, Valve.VR.SteamVR_Input.@__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.@__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.@__actions_buggy_in_Reset, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_00, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_01, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_02, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_03, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_04, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_05, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_06, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_07, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_31, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_32, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_33, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_34, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_00, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_01, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_02, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_03, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_04, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_05, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_06, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_07, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_31, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_32, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_33, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_34 }; Valve.VR.SteamVR_Input.actionsSingle = new Valve.VR.SteamVR_Action_Single[] { Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.@__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4y }; Valve.VR.SteamVR_Input.actionsVector2 = new Valve.VR.SteamVR_Action_Vector2[] { Valve.VR.SteamVR_Input.@__actions_platformer_in_Move, Valve.VR.SteamVR_Input.@__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4xy }; Valve.VR.SteamVR_Input.actionsVector3 = new Valve.VR.SteamVR_Action_Vector3[0]; Valve.VR.SteamVR_Input.actionsSkeleton = new Valve.VR.SteamVR_Action_Skeleton[] { Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonRightHand }; Valve.VR.SteamVR_Input.actionsNonPoseNonSkeletonIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.@__actions_default_in_Teleport, Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.@__actions_default_in_Shoot, Valve.VR.SteamVR_Input.@__actions_platformer_in_Move, Valve.VR.SteamVR_Input.@__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.@__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.@__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.@__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.@__actions_buggy_in_Reset, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_00, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_01, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_02, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_03, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_04, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_05, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_06, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_07, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_31, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_32, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_33, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_press_34, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_00, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_01, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_02, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_03, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_04, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_05, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_06, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_07, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_31, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_32, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_33, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_touch_34, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4x, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4y, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_0xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_1xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_2xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_3xy, Valve.VR.SteamVR_Input.@__actions_htc_viu_in_viu_axis_4xy }; }
public static void Dynamic_InitializeInstanceActions() { Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabPinch"))); Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabGrip"))); Valve.VR.SteamVR_Input.__actions_default_in_Pose = ((SteamVR_Action_Pose)(SteamVR_Input_References.GetAction("__actions_default_in_Pose"))); Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonLeftHand"))); Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonRightHand"))); Valve.VR.SteamVR_Input.__actions_default_out_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Input_References.GetAction("__actions_default_out_Haptic"))); Valve.VR.SteamVR_Input.__actions_rock_in_Squeeze = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_rock_in_Squeeze"))); Valve.VR.SteamVR_Input.__actions_rock_in_Crush = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_rock_in_Crush"))); Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Throttle = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_buggybuddy_in_Throttle"))); Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Steer = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_buggybuddy_in_Steer"))); Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Brake = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_buggybuddy_in_Brake"))); Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Reset = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_buggybuddy_in_Reset"))); Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Turbo = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_buggybuddy_in_Turbo"))); Valve.VR.SteamVR_Input.__actions_space_in_DeleterSelect = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_space_in_DeleterSelect"))); Valve.VR.SteamVR_Input.__actions_space_in_DeleterDelete = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_space_in_DeleterDelete"))); Valve.VR.SteamVR_Input.__actions_grenade_in_PrimeGrenade = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_grenade_in_PrimeGrenade"))); Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezePinch = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_squeezable_in_SqueezePinch"))); Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezeGrip = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_squeezable_in_SqueezeGrip"))); Valve.VR.SteamVR_Input.__actions_teleporting_in_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_teleporting_in_Teleport"))); Valve.VR.SteamVR_Input.__actions_gun_in_Fire = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_gun_in_Fire"))); Valve.VR.SteamVR_Input.actions = new Valve.VR.SteamVR_Action[] { Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_default_in_Pose, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.__actions_default_out_Haptic, Valve.VR.SteamVR_Input.__actions_rock_in_Squeeze, Valve.VR.SteamVR_Input.__actions_rock_in_Crush, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Throttle, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Steer, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Reset, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Turbo, Valve.VR.SteamVR_Input.__actions_space_in_DeleterSelect, Valve.VR.SteamVR_Input.__actions_space_in_DeleterDelete, Valve.VR.SteamVR_Input.__actions_grenade_in_PrimeGrenade, Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezePinch, Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezeGrip, Valve.VR.SteamVR_Input.__actions_teleporting_in_Teleport, Valve.VR.SteamVR_Input.__actions_gun_in_Fire }; Valve.VR.SteamVR_Input.actionsIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_default_in_Pose, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.__actions_rock_in_Squeeze, Valve.VR.SteamVR_Input.__actions_rock_in_Crush, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Throttle, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Steer, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Reset, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Turbo, Valve.VR.SteamVR_Input.__actions_space_in_DeleterSelect, Valve.VR.SteamVR_Input.__actions_space_in_DeleterDelete, Valve.VR.SteamVR_Input.__actions_grenade_in_PrimeGrenade, Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezePinch, Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezeGrip, Valve.VR.SteamVR_Input.__actions_teleporting_in_Teleport, Valve.VR.SteamVR_Input.__actions_gun_in_Fire }; Valve.VR.SteamVR_Input.actionsOut = new Valve.VR.SteamVR_Action_Out[] { Valve.VR.SteamVR_Input.__actions_default_out_Haptic }; Valve.VR.SteamVR_Input.actionsVibration = new Valve.VR.SteamVR_Action_Vibration[] { Valve.VR.SteamVR_Input.__actions_default_out_Haptic }; Valve.VR.SteamVR_Input.actionsPose = new Valve.VR.SteamVR_Action_Pose[] { Valve.VR.SteamVR_Input.__actions_default_in_Pose }; Valve.VR.SteamVR_Input.actionsBoolean = new Valve.VR.SteamVR_Action_Boolean[] { Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_rock_in_Crush, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Reset, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Turbo, Valve.VR.SteamVR_Input.__actions_space_in_DeleterSelect, Valve.VR.SteamVR_Input.__actions_space_in_DeleterDelete, Valve.VR.SteamVR_Input.__actions_grenade_in_PrimeGrenade, Valve.VR.SteamVR_Input.__actions_teleporting_in_Teleport, Valve.VR.SteamVR_Input.__actions_gun_in_Fire }; Valve.VR.SteamVR_Input.actionsSingle = new Valve.VR.SteamVR_Action_Single[] { Valve.VR.SteamVR_Input.__actions_rock_in_Squeeze, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Throttle, Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezePinch, Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezeGrip }; Valve.VR.SteamVR_Input.actionsVector2 = new Valve.VR.SteamVR_Action_Vector2[] { Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Steer }; Valve.VR.SteamVR_Input.actionsVector3 = new Valve.VR.SteamVR_Action_Vector3[0]; Valve.VR.SteamVR_Input.actionsSkeleton = new Valve.VR.SteamVR_Action_Skeleton[] { Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand }; Valve.VR.SteamVR_Input.actionsNonPoseNonSkeletonIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_rock_in_Squeeze, Valve.VR.SteamVR_Input.__actions_rock_in_Crush, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Throttle, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Steer, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Reset, Valve.VR.SteamVR_Input.__actions_buggybuddy_in_Turbo, Valve.VR.SteamVR_Input.__actions_space_in_DeleterSelect, Valve.VR.SteamVR_Input.__actions_space_in_DeleterDelete, Valve.VR.SteamVR_Input.__actions_grenade_in_PrimeGrenade, Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezePinch, Valve.VR.SteamVR_Input.__actions_squeezable_in_SqueezeGrip, Valve.VR.SteamVR_Input.__actions_teleporting_in_Teleport, Valve.VR.SteamVR_Input.__actions_gun_in_Fire }; }
public static void Dynamic_InitializeInstanceActions() { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_InteractUI"))); Valve.VR.SteamVR_Input.@__actions_default_in_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_Teleport"))); Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabPinch"))); Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabGrip"))); Valve.VR.SteamVR_Input.@__actions_default_in_Pose = ((SteamVR_Action_Pose)(SteamVR_Input_References.GetAction("__actions_default_in_Pose"))); Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonLeftHand"))); Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonRightHand"))); Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_default_in_Squeeze"))); Valve.VR.SteamVR_Input.@__actions_default_in_TrackPad = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_default_in_TrackPad"))); Valve.VR.SteamVR_Input.@__actions_default_out_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Input_References.GetAction("__actions_default_out_Haptic"))); Valve.VR.SteamVR_Input.actions = new Valve.VR.SteamVR_Action[] { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.@__actions_default_in_Teleport, Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.@__actions_default_in_Pose, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.@__actions_default_in_TrackPad, Valve.VR.SteamVR_Input.@__actions_default_out_Haptic }; Valve.VR.SteamVR_Input.actionsIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.@__actions_default_in_Teleport, Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.@__actions_default_in_Pose, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.@__actions_default_in_TrackPad }; Valve.VR.SteamVR_Input.actionsOut = new Valve.VR.SteamVR_Action_Out[] { Valve.VR.SteamVR_Input.@__actions_default_out_Haptic }; Valve.VR.SteamVR_Input.actionsVibration = new Valve.VR.SteamVR_Action_Vibration[] { Valve.VR.SteamVR_Input.@__actions_default_out_Haptic }; Valve.VR.SteamVR_Input.actionsPose = new Valve.VR.SteamVR_Action_Pose[] { Valve.VR.SteamVR_Input.@__actions_default_in_Pose }; Valve.VR.SteamVR_Input.actionsBoolean = new Valve.VR.SteamVR_Action_Boolean[] { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.@__actions_default_in_Teleport, Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip }; Valve.VR.SteamVR_Input.actionsSingle = new Valve.VR.SteamVR_Action_Single[] { Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze }; Valve.VR.SteamVR_Input.actionsVector2 = new Valve.VR.SteamVR_Action_Vector2[] { Valve.VR.SteamVR_Input.@__actions_default_in_TrackPad }; Valve.VR.SteamVR_Input.actionsVector3 = new Valve.VR.SteamVR_Action_Vector3[0]; Valve.VR.SteamVR_Input.actionsSkeleton = new Valve.VR.SteamVR_Action_Skeleton[] { Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.@__actions_default_in_SkeletonRightHand }; Valve.VR.SteamVR_Input.actionsNonPoseNonSkeletonIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.@__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.@__actions_default_in_Teleport, Valve.VR.SteamVR_Input.@__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.@__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.@__actions_default_in_Squeeze, Valve.VR.SteamVR_Input.@__actions_default_in_TrackPad }; }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_GrabToggle = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabToggle"))); SteamVR_Actions.p_default_GrabHold = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabHold"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_ResetSeatedPosition = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/ResetSeatedPosition"))); SteamVR_Actions.p_default_MaybeResetSeatedPosition = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/MaybeResetSeatedPosition"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_menu_MenuBack = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Menu/in/MenuBack"))); SteamVR_Actions.p_menu_MenuSelect = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Menu/in/MenuSelect"))); SteamVR_Actions.p_menu_MenuNavigateUp = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Menu/in/MenuNavigateUp"))); SteamVR_Actions.p_menu_MenuNavigateDown = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Menu/in/MenuNavigateDown"))); SteamVR_Actions.p_menu_MenuNavigateLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Menu/in/MenuNavigateLeft"))); SteamVR_Actions.p_menu_MenuNavigateRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Menu/in/MenuNavigateRight"))); SteamVR_Actions.p_menu_MenuNavigateTrackpadPress = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Menu/in/MenuNavigateTrackpadPress"))); SteamVR_Actions.p_menu_MenuNavigateTrackpadTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Menu/in/MenuNavigateTrackpadTouch"))); SteamVR_Actions.p_menu_MenuNavigateTrackpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/Menu/in/MenuNavigateTrackpadPosition"))); SteamVR_Actions.p_menu_MenuNavigateJoystickPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/Menu/in/MenuNavigateJoystickPosition"))); SteamVR_Actions.p_menu_MenuNestedToggle = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Menu/in/MenuNestedToggle"))); SteamVR_Actions.p_uI_UIBack = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UIBack"))); SteamVR_Actions.p_uI_UISelect = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UISelect"))); SteamVR_Actions.p_uI_UINavigateUp = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UINavigateUp"))); SteamVR_Actions.p_uI_UINavigateDown = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UINavigateDown"))); SteamVR_Actions.p_uI_UINavigateLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UINavigateLeft"))); SteamVR_Actions.p_uI_UINavigateRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UINavigateRight"))); SteamVR_Actions.p_uI_UINavigateTrackpadPress = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UINavigateTrackpadPress"))); SteamVR_Actions.p_uI_UINavigateTrackpadTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UINavigateTrackpadTouch"))); SteamVR_Actions.p_uI_UINavigateTrackpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/UI/in/UINavigateTrackpadPosition"))); SteamVR_Actions.p_uI_UINavigateJoystickPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/UI/in/UINavigateJoystickPosition"))); SteamVR_Actions.p_uI_UITabPrevious = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UITabPrevious"))); SteamVR_Actions.p_uI_UITabNext = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UITabNext"))); SteamVR_Actions.p_uI_UITabTrackpadPress = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UITabTrackpadPress"))); SteamVR_Actions.p_uI_UITabTrackpadTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI/in/UITabTrackpadTouch"))); SteamVR_Actions.p_uI_UITabTrackpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/UI/in/UITabTrackpadPosition"))); SteamVR_Actions.p_uI_UITabJoystickPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/UI/in/UITabJoystickPosition"))); SteamVR_Actions.p_cockpitControls_ButtonPrimary = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/CockpitControls/in/ButtonPrimary"))); SteamVR_Actions.p_cockpitControls_ButtonSecondary = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/CockpitControls/in/ButtonSecondary"))); SteamVR_Actions.p_cockpitControls_ButtonAlt = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/CockpitControls/in/ButtonAlt"))); SteamVR_Actions.p_cockpitControls_ButtonPOV1 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/CockpitControls/in/ButtonPOV1"))); SteamVR_Actions.p_cockpitControls_POV1TrackpadPress = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/CockpitControls/in/POV1TrackpadPress"))); SteamVR_Actions.p_cockpitControls_POV1TrackpadTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/CockpitControls/in/POV1TrackpadTouch"))); SteamVR_Actions.p_cockpitControls_POV1TrackpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/CockpitControls/in/POV1TrackpadPosition"))); SteamVR_Actions.p_cockpitControls_POV1JoystickPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/CockpitControls/in/POV1JoystickPosition"))); SteamVR_Actions.p_cockpitControls_ButtonPOV2 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/CockpitControls/in/ButtonPOV2"))); SteamVR_Actions.p_cockpitControls_POV2TrackpadPress = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/CockpitControls/in/POV2TrackpadPress"))); SteamVR_Actions.p_cockpitControls_POV2TrackpadTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/CockpitControls/in/POV2TrackpadTouch"))); SteamVR_Actions.p_cockpitControls_POV2TrackpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/CockpitControls/in/POV2TrackpadPosition"))); SteamVR_Actions.p_cockpitControls_POV2JoystickPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/CockpitControls/in/POV2JoystickPosition"))); SteamVR_Actions.p_fSSControls_ExitFSS = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/ExitFSS"))); SteamVR_Actions.p_fSSControls_CameraControl = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/FSSControls/in/CameraControl"))); SteamVR_Actions.p_fSSControls_CameraControlActivate = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/CameraControlActivate"))); SteamVR_Actions.p_fSSControls_TargetCurrentSignal = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/TargetCurrentSignal"))); SteamVR_Actions.p_fSSControls_ZoomIn = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/ZoomIn"))); SteamVR_Actions.p_fSSControls_ZoomOut = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/ZoomOut"))); SteamVR_Actions.p_fSSControls_SteppedZoomIn = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/SteppedZoomIn"))); SteamVR_Actions.p_fSSControls_SteppedZoomOut = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/SteppedZoomOut"))); SteamVR_Actions.p_fSSControls_ZoomTrackpadPress = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/ZoomTrackpadPress"))); SteamVR_Actions.p_fSSControls_ZoomTrackpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/FSSControls/in/ZoomTrackpadPosition"))); SteamVR_Actions.p_fSSControls_ZoomTrackpadTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/ZoomTrackpadTouch"))); SteamVR_Actions.p_fSSControls_SteppedZoomTrackpadPress = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/SteppedZoomTrackpadPress"))); SteamVR_Actions.p_fSSControls_SteppedZoomTrackpadPosition = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/FSSControls/in/SteppedZoomTrackpadPosition"))); SteamVR_Actions.p_fSSControls_SteppedZoomTrackpadTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/FSSControls/in/SteppedZoomTrackpadTouch"))); }
public static void Dynamic_InitializeInstanceActions() { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_InteractUI"))); Valve.VR.SteamVR_Input.__actions_default_in_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_Teleport"))); Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabPinch"))); Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_GrabGrip"))); Valve.VR.SteamVR_Input.__actions_default_in_Pose = ((SteamVR_Action_Pose)(SteamVR_Input_References.GetAction("__actions_default_in_Pose"))); Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonLeftHand"))); Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Input_References.GetAction("__actions_default_in_SkeletonRightHand"))); Valve.VR.SteamVR_Input.__actions_default_in_SqueezeLeft = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_default_in_SqueezeLeft"))); Valve.VR.SteamVR_Input.__actions_default_in_teleportUp = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_teleportUp"))); Valve.VR.SteamVR_Input.__actions_default_in_teleportDown = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_teleportDown"))); Valve.VR.SteamVR_Input.__actions_default_in_SqueezeRight = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_default_in_SqueezeRight"))); Valve.VR.SteamVR_Input.__actions_default_in_trackpadLeft = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_default_in_trackpadLeft"))); Valve.VR.SteamVR_Input.__actions_default_in_trackpadRight = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_default_in_trackpadRight"))); Valve.VR.SteamVR_Input.__actions_default_in_touchingLeftTrackpad = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_touchingLeftTrackpad"))); Valve.VR.SteamVR_Input.__actions_default_in_touchingRightTrackpad = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_touchingRightTrackpad"))); Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonLeft = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_MenuButtonLeft"))); Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonRight = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_MenuButtonRight"))); Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadLeft = ((SteamVR_Action_Vector3)(SteamVR_Input_References.GetAction("__actions_default_in_ScrollPadLeft"))); Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadRight = ((SteamVR_Action_Vector3)(SteamVR_Input_References.GetAction("__actions_default_in_ScrollPadRight"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthLeft = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadNorthLeft"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadEastLeft = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadEastLeft"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthLeft = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadSouthLeft"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadWestLeft = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadWestLeft"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthRight = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadNorthRight"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadEastRight = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadEastRight"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthRight = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadSouthRight"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadWestRight = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadWestRight"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleLeft = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadMiddleLeft"))); Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleRight = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_default_in_DPadMiddleRight"))); Valve.VR.SteamVR_Input.__actions_default_out_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Input_References.GetAction("__actions_default_out_Haptic"))); Valve.VR.SteamVR_Input.__actions_platformer_in_Move = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_platformer_in_Move"))); Valve.VR.SteamVR_Input.__actions_platformer_in_Jump = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_platformer_in_Jump"))); Valve.VR.SteamVR_Input.__actions_buggy_in_Steering = ((SteamVR_Action_Vector2)(SteamVR_Input_References.GetAction("__actions_buggy_in_Steering"))); Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle = ((SteamVR_Action_Single)(SteamVR_Input_References.GetAction("__actions_buggy_in_Throttle"))); Valve.VR.SteamVR_Input.__actions_buggy_in_Brake = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_buggy_in_Brake"))); Valve.VR.SteamVR_Input.__actions_buggy_in_Reset = ((SteamVR_Action_Boolean)(SteamVR_Input_References.GetAction("__actions_buggy_in_Reset"))); Valve.VR.SteamVR_Input.actions = new Valve.VR.SteamVR_Action[] { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.__actions_default_in_Teleport, Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_default_in_Pose, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.__actions_default_in_SqueezeLeft, Valve.VR.SteamVR_Input.__actions_default_in_teleportUp, Valve.VR.SteamVR_Input.__actions_default_in_teleportDown, Valve.VR.SteamVR_Input.__actions_default_in_SqueezeRight, Valve.VR.SteamVR_Input.__actions_default_in_trackpadLeft, Valve.VR.SteamVR_Input.__actions_default_in_trackpadRight, Valve.VR.SteamVR_Input.__actions_default_in_touchingLeftTrackpad, Valve.VR.SteamVR_Input.__actions_default_in_touchingRightTrackpad, Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonLeft, Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonRight, Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadLeft, Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadEastLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadWestLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadEastRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadWestRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleRight, Valve.VR.SteamVR_Input.__actions_default_out_Haptic, Valve.VR.SteamVR_Input.__actions_platformer_in_Move, Valve.VR.SteamVR_Input.__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggy_in_Reset }; Valve.VR.SteamVR_Input.actionsIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.__actions_default_in_Teleport, Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_default_in_Pose, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand, Valve.VR.SteamVR_Input.__actions_default_in_SqueezeLeft, Valve.VR.SteamVR_Input.__actions_default_in_teleportUp, Valve.VR.SteamVR_Input.__actions_default_in_teleportDown, Valve.VR.SteamVR_Input.__actions_default_in_SqueezeRight, Valve.VR.SteamVR_Input.__actions_default_in_trackpadLeft, Valve.VR.SteamVR_Input.__actions_default_in_trackpadRight, Valve.VR.SteamVR_Input.__actions_default_in_touchingLeftTrackpad, Valve.VR.SteamVR_Input.__actions_default_in_touchingRightTrackpad, Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonLeft, Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonRight, Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadLeft, Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadEastLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadWestLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadEastRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadWestRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleRight, Valve.VR.SteamVR_Input.__actions_platformer_in_Move, Valve.VR.SteamVR_Input.__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggy_in_Reset }; Valve.VR.SteamVR_Input.actionsOut = new Valve.VR.SteamVR_Action_Out[] { Valve.VR.SteamVR_Input.__actions_default_out_Haptic }; Valve.VR.SteamVR_Input.actionsVibration = new Valve.VR.SteamVR_Action_Vibration[] { Valve.VR.SteamVR_Input.__actions_default_out_Haptic }; Valve.VR.SteamVR_Input.actionsPose = new Valve.VR.SteamVR_Action_Pose[] { Valve.VR.SteamVR_Input.__actions_default_in_Pose }; Valve.VR.SteamVR_Input.actionsBoolean = new Valve.VR.SteamVR_Action_Boolean[] { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.__actions_default_in_Teleport, Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_default_in_teleportUp, Valve.VR.SteamVR_Input.__actions_default_in_teleportDown, Valve.VR.SteamVR_Input.__actions_default_in_touchingLeftTrackpad, Valve.VR.SteamVR_Input.__actions_default_in_touchingRightTrackpad, Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonLeft, Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadEastLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadWestLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadEastRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadWestRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleRight, Valve.VR.SteamVR_Input.__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggy_in_Reset }; Valve.VR.SteamVR_Input.actionsSingle = new Valve.VR.SteamVR_Action_Single[] { Valve.VR.SteamVR_Input.__actions_default_in_SqueezeLeft, Valve.VR.SteamVR_Input.__actions_default_in_SqueezeRight, Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle }; Valve.VR.SteamVR_Input.actionsVector2 = new Valve.VR.SteamVR_Action_Vector2[] { Valve.VR.SteamVR_Input.__actions_default_in_trackpadLeft, Valve.VR.SteamVR_Input.__actions_default_in_trackpadRight, Valve.VR.SteamVR_Input.__actions_platformer_in_Move, Valve.VR.SteamVR_Input.__actions_buggy_in_Steering }; Valve.VR.SteamVR_Input.actionsVector3 = new Valve.VR.SteamVR_Action_Vector3[] { Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadLeft, Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadRight }; Valve.VR.SteamVR_Input.actionsSkeleton = new Valve.VR.SteamVR_Action_Skeleton[] { Valve.VR.SteamVR_Input.__actions_default_in_SkeletonLeftHand, Valve.VR.SteamVR_Input.__actions_default_in_SkeletonRightHand }; Valve.VR.SteamVR_Input.actionsNonPoseNonSkeletonIn = new Valve.VR.SteamVR_Action_In[] { Valve.VR.SteamVR_Input.__actions_default_in_InteractUI, Valve.VR.SteamVR_Input.__actions_default_in_Teleport, Valve.VR.SteamVR_Input.__actions_default_in_GrabPinch, Valve.VR.SteamVR_Input.__actions_default_in_GrabGrip, Valve.VR.SteamVR_Input.__actions_default_in_SqueezeLeft, Valve.VR.SteamVR_Input.__actions_default_in_teleportUp, Valve.VR.SteamVR_Input.__actions_default_in_teleportDown, Valve.VR.SteamVR_Input.__actions_default_in_SqueezeRight, Valve.VR.SteamVR_Input.__actions_default_in_trackpadLeft, Valve.VR.SteamVR_Input.__actions_default_in_trackpadRight, Valve.VR.SteamVR_Input.__actions_default_in_touchingLeftTrackpad, Valve.VR.SteamVR_Input.__actions_default_in_touchingRightTrackpad, Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonLeft, Valve.VR.SteamVR_Input.__actions_default_in_MenuButtonRight, Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadLeft, Valve.VR.SteamVR_Input.__actions_default_in_ScrollPadRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadEastLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadWestLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadNorthRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadEastRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadSouthRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadWestRight, Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleLeft, Valve.VR.SteamVR_Input.__actions_default_in_DPadMiddleRight, Valve.VR.SteamVR_Input.__actions_platformer_in_Move, Valve.VR.SteamVR_Input.__actions_platformer_in_Jump, Valve.VR.SteamVR_Input.__actions_buggy_in_Steering, Valve.VR.SteamVR_Input.__actions_buggy_in_Throttle, Valve.VR.SteamVR_Input.__actions_buggy_in_Brake, Valve.VR.SteamVR_Input.__actions_buggy_in_Reset }; }
private static void PreInitActions() { SteamVR_Actions.p_default_InteractUI = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI"))); SteamVR_Actions.p_default_Teleport = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport"))); SteamVR_Actions.p_default_GrabPinch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinch"))); SteamVR_Actions.p_default_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabGrip"))); SteamVR_Actions.p_default_Pose = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/default/in/Pose"))); SteamVR_Actions.p_default_SkeletonLeftHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonLeftHand"))); SteamVR_Actions.p_default_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/default/in/SkeletonRightHand"))); SteamVR_Actions.p_default_Squeeze = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/Squeeze"))); SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead"))); SteamVR_Actions.p_default_SnapTurnLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnLeft"))); SteamVR_Actions.p_default_SnapTurnRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnRight"))); SteamVR_Actions.p_default_OpenMenu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/OpenMenu"))); SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic"))); SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/platformer/in/Move"))); SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/platformer/in/Jump"))); SteamVR_Actions.p_buggy_Steering = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggy/in/Steering"))); SteamVR_Actions.p_buggy_Throttle = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggy/in/Throttle"))); SteamVR_Actions.p_buggy_Brake = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Brake"))); SteamVR_Actions.p_buggy_Reset = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggy/in/Reset"))); SteamVR_Actions.p_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera"))); SteamVR_Actions.p_htc_viu_viu_press_00 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_00"))); SteamVR_Actions.p_htc_viu_viu_press_01 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_01"))); SteamVR_Actions.p_htc_viu_viu_press_02 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_02"))); SteamVR_Actions.p_htc_viu_viu_press_03 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_03"))); SteamVR_Actions.p_htc_viu_viu_press_04 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_04"))); SteamVR_Actions.p_htc_viu_viu_press_05 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_05"))); SteamVR_Actions.p_htc_viu_viu_press_06 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_06"))); SteamVR_Actions.p_htc_viu_viu_press_07 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_07"))); SteamVR_Actions.p_htc_viu_viu_press_31 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_31"))); SteamVR_Actions.p_htc_viu_viu_press_32 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_32"))); SteamVR_Actions.p_htc_viu_viu_press_33 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_33"))); SteamVR_Actions.p_htc_viu_viu_press_34 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_34"))); SteamVR_Actions.p_htc_viu_viu_press_35 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_press_35"))); SteamVR_Actions.p_htc_viu_viu_touch_00 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_00"))); SteamVR_Actions.p_htc_viu_viu_touch_01 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_01"))); SteamVR_Actions.p_htc_viu_viu_touch_02 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_02"))); SteamVR_Actions.p_htc_viu_viu_touch_03 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_03"))); SteamVR_Actions.p_htc_viu_viu_touch_04 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_04"))); SteamVR_Actions.p_htc_viu_viu_touch_05 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_05"))); SteamVR_Actions.p_htc_viu_viu_touch_06 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_06"))); SteamVR_Actions.p_htc_viu_viu_touch_07 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_07"))); SteamVR_Actions.p_htc_viu_viu_touch_31 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_31"))); SteamVR_Actions.p_htc_viu_viu_touch_32 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_32"))); SteamVR_Actions.p_htc_viu_viu_touch_33 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_33"))); SteamVR_Actions.p_htc_viu_viu_touch_34 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_34"))); SteamVR_Actions.p_htc_viu_viu_touch_35 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/htc_viu/in/viu_touch_35"))); SteamVR_Actions.p_htc_viu_viu_axis_0x = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_0x"))); SteamVR_Actions.p_htc_viu_viu_axis_0y = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_0y"))); SteamVR_Actions.p_htc_viu_viu_axis_1x = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_1x"))); SteamVR_Actions.p_htc_viu_viu_axis_1y = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_1y"))); SteamVR_Actions.p_htc_viu_viu_axis_2x = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_2x"))); SteamVR_Actions.p_htc_viu_viu_axis_2y = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_2y"))); SteamVR_Actions.p_htc_viu_viu_axis_3x = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_3x"))); SteamVR_Actions.p_htc_viu_viu_axis_3y = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_3y"))); SteamVR_Actions.p_htc_viu_viu_axis_4x = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_4x"))); SteamVR_Actions.p_htc_viu_viu_axis_4y = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/htc_viu/in/viu_axis_4y"))); SteamVR_Actions.p_htc_viu_viu_axis_0xy = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/htc_viu/in/viu_axis_0xy"))); SteamVR_Actions.p_htc_viu_viu_axis_1xy = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/htc_viu/in/viu_axis_1xy"))); SteamVR_Actions.p_htc_viu_viu_axis_2xy = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/htc_viu/in/viu_axis_2xy"))); SteamVR_Actions.p_htc_viu_viu_axis_3xy = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/htc_viu/in/viu_axis_3xy"))); SteamVR_Actions.p_htc_viu_viu_axis_4xy = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/htc_viu/in/viu_axis_4xy"))); SteamVR_Actions.p_htc_viu_viu_vib_01 = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/htc_viu/out/viu_vib_01"))); }
private void OnGUI() { if (SteamVR_Input.actionSets == null) { EditorGUILayout.LabelField("Must first generate actions. Open SteamVR Input window."); return; } bool startUpdatingSourceOnAccess = SteamVR_Action.startUpdatingSourceOnAccess; SteamVR_Action.startUpdatingSourceOnAccess = false; if (labelStyle == null) { labelStyle = new GUIStyle(EditorStyles.textField); labelStyle.normal.background = Texture2D.whiteTexture; setLabelStyle = new GUIStyle(EditorStyles.label); setLabelStyle.wordWrap = true; setLabelStyle.normal.background = Texture2D.whiteTexture; } scrollPosition = EditorGUILayout.BeginScrollView(scrollPosition); Color defaultColor = GUI.backgroundColor; SteamVR_ActionSet[] actionSets = SteamVR_Input.actionSets; SteamVR_Input_Sources[] sources = SteamVR_Input_Source.GetAllSources(); if (sourceFoldouts == null) { sourceFoldouts = new Dictionary <SteamVR_Input_Sources, bool>(); setFoldouts = new Dictionary <SteamVR_Input_Sources, Dictionary <string, bool> >(); for (int sourceIndex = 0; sourceIndex < sources.Length; sourceIndex++) { sourceFoldouts.Add(sources[sourceIndex], false); setFoldouts.Add(sources[sourceIndex], new Dictionary <string, bool>()); for (int actionSetIndex = 0; actionSetIndex < actionSets.Length; actionSetIndex++) { SteamVR_ActionSet set = actionSets[actionSetIndex]; setFoldouts[sources[sourceIndex]].Add(set.GetShortName(), true); } } sourceFoldouts[SteamVR_Input_Sources.Any] = true; sourceFoldouts[SteamVR_Input_Sources.LeftHand] = true; sourceFoldouts[SteamVR_Input_Sources.RightHand] = true; } DrawMap(); for (int sourceIndex = 0; sourceIndex < sources.Length; sourceIndex++) { SteamVR_Input_Sources source = sources[sourceIndex]; sourceFoldouts[source] = EditorGUILayout.Foldout(sourceFoldouts[source], source.ToString()); if (sourceFoldouts[source] == false) { continue; } EditorGUI.indentLevel++; for (int actionSetIndex = 0; actionSetIndex < actionSets.Length; actionSetIndex++) { SteamVR_ActionSet set = actionSets[actionSetIndex]; bool setActive = set.IsActive(source); string activeText = setActive ? "Active" : "Inactive"; float setLastChanged = set.GetTimeLastChanged(); if (setLastChanged != -1) { float timeSinceLastChanged = Time.realtimeSinceStartup - setLastChanged; if (timeSinceLastChanged < 1) { Color blendColor = setActive ? Color.green : inactiveSetColor; Color setColor = Color.Lerp(blendColor, defaultColor, timeSinceLastChanged); GUI.backgroundColor = setColor; } } EditorGUILayout.BeginHorizontal(); setFoldouts[source][set.GetShortName()] = EditorGUILayout.Foldout(setFoldouts[source][set.GetShortName()], set.GetShortName()); EditorGUILayout.LabelField(activeText, labelStyle); GUI.backgroundColor = defaultColor; EditorGUILayout.EndHorizontal(); if (setFoldouts[source][set.GetShortName()] == false) { continue; } EditorGUI.indentLevel++; for (int actionIndex = 0; actionIndex < set.allActions.Length; actionIndex++) { SteamVR_Action action = set.allActions[actionIndex]; if (source != SteamVR_Input_Sources.Any && action is SteamVR_Action_Skeleton) { continue; } bool isUpdating = action.IsUpdating(source); bool inAction = action is ISteamVR_Action_In; bool noData = false; if (inAction && isUpdating == false) { GUI.backgroundColor = Color.yellow; noData = true; } else { bool actionBound = action.GetActiveBinding(source); if (setActive == false) { GUI.backgroundColor = inactiveSetColor; } else if (actionBound == false) { GUI.backgroundColor = Color.red; noData = true; } } if (noData) { EditorGUILayout.LabelField(action.GetShortName(), "-", labelStyle); GUI.backgroundColor = defaultColor; continue; } float actionLastChanged = action.GetTimeLastChanged(source); string actionText = ""; float timeSinceLastChanged = -1; if (actionLastChanged != -1) { timeSinceLastChanged = Time.realtimeSinceStartup - actionLastChanged; if (timeSinceLastChanged < 1) { Color setColor = Color.Lerp(Color.green, defaultColor, timeSinceLastChanged); GUI.backgroundColor = setColor; } } if (action is SteamVR_Action_Boolean) { SteamVR_Action_Boolean actionBoolean = (SteamVR_Action_Boolean)action; actionText = actionBoolean.GetState(source).ToString(); } else if (action is SteamVR_Action_Single) { SteamVR_Action_Single actionSingle = (SteamVR_Action_Single)action; actionText = actionSingle.GetAxis(source).ToString("0.0000"); } else if (action is SteamVR_Action_Vector2) { SteamVR_Action_Vector2 actionVector2 = (SteamVR_Action_Vector2)action; actionText = string.Format("({0:0.0000}, {1:0.0000})", actionVector2.GetAxis(source).x, actionVector2.GetAxis(source).y); } else if (action is SteamVR_Action_Vector3) { SteamVR_Action_Vector3 actionVector3 = (SteamVR_Action_Vector3)action; Vector3 axis = actionVector3.GetAxis(source); actionText = string.Format("({0:0.0000}, {1:0.0000}, {2:0.0000})", axis.x, axis.y, axis.z); } else if (action is SteamVR_Action_Pose) { SteamVR_Action_Pose actionPose = (SteamVR_Action_Pose)action; Vector3 position = actionPose.GetLocalPosition(source); Quaternion rotation = actionPose.GetLocalRotation(source); actionText = string.Format("({0:0.0000}, {1:0.0000}, {2:0.0000}) : ({3:0.0000}, {4:0.0000}, {5:0.0000}, {6:0.0000})", position.x, position.y, position.z, rotation.x, rotation.y, rotation.z, rotation.w); } else if (action is SteamVR_Action_Skeleton) { SteamVR_Action_Skeleton actionSkeleton = (SteamVR_Action_Skeleton)action; Vector3 position = actionSkeleton.GetLocalPosition(source); Quaternion rotation = actionSkeleton.GetLocalRotation(source); actionText = string.Format("({0:0.0000}, {1:0.0000}, {2:0.0000}) : ({3:0.0000}, {4:0.0000}, {5:0.0000}, {6:0.0000})", position.x, position.y, position.z, rotation.x, rotation.y, rotation.z, rotation.w); } else if (action is SteamVR_Action_Vibration) { //SteamVR_Input_Action_Vibration actionVibration = (SteamVR_Input_Action_Vibration)action; if (timeSinceLastChanged == -1) { actionText = "never used"; } actionText = string.Format("{0:0} seconds since last used", timeSinceLastChanged); } EditorGUILayout.LabelField(action.GetShortName(), actionText, labelStyle); GUI.backgroundColor = defaultColor; } EditorGUI.indentLevel--; EditorGUILayout.Space(); } EditorGUI.indentLevel--; } EditorGUILayout.Space(); EditorGUILayout.LabelField("Active Action Set List"); EditorGUI.indentLevel++; EditorGUILayout.LabelField(SteamVR_ActionSet_Manager.debugActiveSetListText, setLabelStyle); EditorGUI.indentLevel--; EditorGUILayout.Space(); EditorGUILayout.EndScrollView(); SteamVR_Action.startUpdatingSourceOnAccess = startUpdatingSourceOnAccess; }
/// <summary> /// <strong>[Should not be called by user code]</strong> Sets up the internals of the action source before SteamVR has been initialized. /// </summary> public override void Preinitialize(SteamVR_Action wrappingAction, SteamVR_Input_Sources forInputSource) { base.Preinitialize(wrappingAction, forInputSource); vector2Action = (SteamVR_Action_Vector2)wrappingAction; }