コード例 #1
0
 private static void PreInitActions()
 {
     SteamVR_Actions.p_steamvr_InteractUI        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/steamvr/in/InteractUI")));
     SteamVR_Actions.p_steamvr_Teleport          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/steamvr/in/Teleport")));
     SteamVR_Actions.p_steamvr_GrabPinch         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/steamvr/in/GrabPinch")));
     SteamVR_Actions.p_steamvr_GrabGrip          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/steamvr/in/GrabGrip")));
     SteamVR_Actions.p_steamvr_Pose              = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/steamvr/in/Pose")));
     SteamVR_Actions.p_steamvr_SkeletonLeftHand  = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/steamvr/in/SkeletonLeftHand")));
     SteamVR_Actions.p_steamvr_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/steamvr/in/SkeletonRightHand")));
     SteamVR_Actions.p_steamvr_Squeeze           = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/steamvr/in/Squeeze")));
     SteamVR_Actions.p_steamvr_HeadsetOnHead     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/steamvr/in/HeadsetOnHead")));
     SteamVR_Actions.p_steamvr_Haptic            = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/steamvr/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")));
 }
コード例 #2
0
 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_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_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_ShowMap           = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/ShowMap")));
     SteamVR_Actions.p_default_UpDpad            = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/UpDpad")));
     SteamVR_Actions.p_default_DownDpad          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/DownDpad")));
     SteamVR_Actions.p_default_LeftDpad          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/LeftDpad")));
     SteamVR_Actions.p_default_RightDpad         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/RightDpad")));
     SteamVR_Actions.p_default_TrackPadPosition  = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TrackPadPosition")));
     SteamVR_Actions.p_default_PressTrackPad     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PressTrackPad")));
     SteamVR_Actions.p_default_TouchTrackPad     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TouchTrackPad")));
     SteamVR_Actions.p_default_Haptic            = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic")));
 }
コード例 #3
0
 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_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_performanceBounceback_GrabGrip = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/PerformanceBounceback/in/GrabGrip")));
     SteamVR_Actions.p_performanceBounceback_Haptic   = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/PerformanceBounceback/out/Haptic")));
 }
コード例 #4
0
 private static void PreInitActions()
 {
     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_MoveUp              = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/MoveUp")));
     SteamVR_Actions.p_default_DimensionJump       = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/DimensionJump")));
     SteamVR_Actions.p_default_Teleport            = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport")));
     SteamVR_Actions.p_default_StartLaser          = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/default/in/StartLaser")));
     SteamVR_Actions.p_default_PullObject          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PullObject")));
     SteamVR_Actions.p_default_Pause               = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Pause")));
     SteamVR_Actions.p_default_Haptic              = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic")));
     SteamVR_Actions.p_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera")));
 }
コード例 #5
0
 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_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_Locomotion           = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/Locomotion")));
     SteamVR_Actions.p_default_Jump                 = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Jump")));
     SteamVR_Actions.p_default_CollectNearby        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/CollectNearby")));
     SteamVR_Actions.p_default_Action               = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Action")));
     SteamVR_Actions.p_default_GunInteract          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GunInteract")));
     SteamVR_Actions.p_default_GunInteract2         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GunInteract2")));
     SteamVR_Actions.p_default_GunInteract3         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GunInteract3")));
     SteamVR_Actions.p_default_GunInteractLongpress = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GunInteractLongpress")));
     SteamVR_Actions.p_default_PauseGame            = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PauseGame")));
     SteamVR_Actions.p_default_Haptic               = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic")));
     SteamVR_Actions.p_mixedreality_ExternalCamera  = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera")));
 }
コード例 #6
0
 private static void PreInitActions()
 {
     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_HeadsetOnHead     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead")));
     SteamVR_Actions.p_default_InteractUI        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI")));
     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")));
     SteamVR_Actions.p_rock_Squeeze              = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/rock/in/Squeeze")));
     SteamVR_Actions.p_rock_Crush              = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/rock/in/Crush")));
     SteamVR_Actions.p_buggybuddy_Throttle     = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/buggybuddy/in/Throttle")));
     SteamVR_Actions.p_buggybuddy_Steer        = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/buggybuddy/in/Steer")));
     SteamVR_Actions.p_buggybuddy_Brake        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggybuddy/in/Brake")));
     SteamVR_Actions.p_buggybuddy_Reset        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggybuddy/in/Reset")));
     SteamVR_Actions.p_buggybuddy_Turbo        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/buggybuddy/in/Turbo")));
     SteamVR_Actions.p_space_DeleterSelect     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/space/in/DeleterSelect")));
     SteamVR_Actions.p_space_DeleterDelete     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/space/in/DeleterDelete")));
     SteamVR_Actions.p_grenade_PrimeGrenade    = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/grenade/in/PrimeGrenade")));
     SteamVR_Actions.p_squeezable_SqueezePinch = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/squeezable/in/SqueezePinch")));
     SteamVR_Actions.p_squeezable_SqueezeGrip  = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/squeezable/in/SqueezeGrip")));
     SteamVR_Actions.p_teleporting_Teleport    = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/teleporting/in/Teleport")));
     SteamVR_Actions.p_gun_Fire            = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/gun/in/Fire")));
     SteamVR_Actions.p_raw_ATouch          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/ATouch")));
     SteamVR_Actions.p_raw_APress          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/APress")));
     SteamVR_Actions.p_raw_BTouch          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/BTouch")));
     SteamVR_Actions.p_raw_BPress          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/BPress")));
     SteamVR_Actions.p_raw_TouchpadTouch   = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/TouchpadTouch")));
     SteamVR_Actions.p_raw_TouchpadPress   = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/TouchpadPress")));
     SteamVR_Actions.p_raw_TouchpadAxis    = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/raw/in/TouchpadAxis")));
     SteamVR_Actions.p_raw_ThumbstickTouch = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/ThumbstickTouch")));
     SteamVR_Actions.p_raw_ThumbstickPress = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/ThumbstickPress")));
     SteamVR_Actions.p_raw_ThumbstickAxis  = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/raw/in/ThumbstickAxis")));
     SteamVR_Actions.p_raw_TriggerTouch    = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/TriggerTouch")));
     SteamVR_Actions.p_raw_TriggerPress    = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/raw/in/TriggerPress")));
     SteamVR_Actions.p_raw_TriggerAxis     = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/raw/in/TriggerAxis")));
     SteamVR_Actions.p_raw_GripForceAxis   = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/raw/in/GripForceAxis")));
     SteamVR_Actions.p_raw_TopForceAxis    = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/raw/in/TopForceAxis")));
 }
コード例 #7
0
 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_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_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_firePointer       = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/firePointer")));
     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_mixedreality_ExternalCamera = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/mixedreality/in/ExternalCamera")));
 }
コード例 #8
0
 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")));
 }
コード例 #9
0
 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_ChangeTension     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/ChangeTension")));
     SteamVR_Actions.p_default_PullLightsaber    = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PullLightsaber")));
     SteamVR_Actions.p_default_SkipIntro         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SkipIntro")));
     SteamVR_Actions.p_default_SwitchLightsaber  = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SwitchLightsaber")));
     SteamVR_Actions.p_default_LIghtningStrike   = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/LIghtningStrike")));
     SteamVR_Actions.p_default_Haptic            = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/default/out/Haptic")));
 }
コード例 #10
0
 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")));
 }
コード例 #11
0
 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_GrabPinchLeft     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinchLeft")));
     SteamVR_Actions.p_default_GrabPinchRight    = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GrabPinchRight")));
     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")));
     SteamVR_Actions.p_main_OpenInventory        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/main/in/OpenInventory")));
     SteamVR_Actions.p_main_RightHand            = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/main/in/RightHand")));
     SteamVR_Actions.p_main_RightHand_Anim       = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/main/in/RightHand_Anim")));
     SteamVR_Actions.p_driving_HonkHorn          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/driving/in/HonkHorn")));
     SteamVR_Actions.p_driving_Throttle          = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/driving/in/Throttle")));
     SteamVR_Actions.p_driving_SpeedBump         = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/driving/out/SpeedBump")));
 }
コード例 #12
0
 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")));
 }
コード例 #13
0
 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")));
 }
コード例 #14
0
        /// <summary>
        /// <strong>[Should not be called by user code]</strong> If it looks like we aren't attached to a real action then try and find the existing action for our given path.
        /// </summary>
        public override string TryNeedsInitData()
        {
            if (needsReinit && actionPath != null)
            {
                SteamVR_Action existingAction = FindExistingActionForPartialPath(actionPath);

                if (existingAction == null)
                {
                    this.sourceMap = null;
                }
                else
                {
                    this.actionPath = existingAction.fullPath;
                    this.sourceMap  = (SourceMap)existingAction.GetSourceMap();

                    initialized = true;
                    needsReinit = false;
                    return(actionPath);
                }
            }

            return(null);
        }
コード例 #15
0
 private static void PreInitActions()
 {
     SteamVR_Actions.p_default_Grab              = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Grab")));
     SteamVR_Actions.p_default_Teleport          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Teleport")));
     SteamVR_Actions.p_default_InteractUI        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/InteractUI")));
     SteamVR_Actions.p_default_Interact          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Interact")));
     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_Pointer           = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Pointer")));
     SteamVR_Actions.p_default_TouchpadAxis      = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TouchpadAxis")));
     SteamVR_Actions.p_default_SnapTurnRight     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SnapTurnRight")));
     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")));
     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")));
 }
コード例 #16
0
 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_TouchPadAxis      = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TouchPadAxis")));
     SteamVR_Actions.p_default_PickUpGun         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/PickUpGun")));
     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_shooting_TurretFire         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Shooting/in/TurretFire")));
 }
コード例 #17
0
 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")));
 }
コード例 #18
0
 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")));
 }
コード例 #19
0
 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_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")));
 }
コード例 #21
0
 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_TrackpadAxis      = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TrackpadAxis")));
     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_vRControlActionSet_TrackpadAxis      = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/VRControlActionSet/in/TrackpadAxis")));
     SteamVR_Actions.p_vRControlActionSet_TrackpadButton    = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRControlActionSet/in/TrackpadButton")));
     SteamVR_Actions.p_vRControlActionSet_TriggerAxis       = ((SteamVR_Action_Single)(SteamVR_Action.Create <SteamVR_Action_Single>("/actions/VRControlActionSet/in/TriggerAxis")));
     SteamVR_Actions.p_vRControlActionSet_TriggerButton     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRControlActionSet/in/TriggerButton")));
     SteamVR_Actions.p_vRControlActionSet_SideButton        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRControlActionSet/in/SideButton")));
     SteamVR_Actions.p_vRControlActionSet_MenuButton        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRControlActionSet/in/MenuButton")));
     SteamVR_Actions.p_vRControlActionSet_TrackpadDPadUp    = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRControlActionSet/in/TrackpadDPadUp")));
     SteamVR_Actions.p_vRControlActionSet_TrackpadDPadDown  = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRControlActionSet/in/TrackpadDPadDown")));
     SteamVR_Actions.p_vRControlActionSet_TrackpadDPadRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRControlActionSet/in/TrackpadDPadRight")));
     SteamVR_Actions.p_vRControlActionSet_TrackpadDPadLeft  = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRControlActionSet/in/TrackpadDPadLeft")));
     SteamVR_Actions.p_vRControlActionSet_Pose              = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/VRControlActionSet/in/Pose")));
     SteamVR_Actions.p_vRControlActionSet_HeadsetOnHead     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/VRControlActionSet/in/HeadsetOnHead")));
     SteamVR_Actions.p_vRControlActionSet_SkeletonLeftHand  = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/VRControlActionSet/in/SkeletonLeftHand")));
     SteamVR_Actions.p_vRControlActionSet_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/VRControlActionSet/in/SkeletonRightHand")));
     SteamVR_Actions.p_vRControlActionSet_Haptic            = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/VRControlActionSet/out/Haptic")));
 }
コード例 #22
0
 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_uI_Interaction_Trigger      = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/UI_Interaction/in/Trigger")));
     SteamVR_Actions.p_test_simpleTest             = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Test/in/simpleTest")));
 }
コード例 #23
0
 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_OverviewRight     = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/OverviewRight")));
     SteamVR_Actions.p_default_OverviewLeft      = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/OverviewLeft")));
     SteamVR_Actions.p_default_OverviewUp        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/OverviewUp")));
     SteamVR_Actions.p_default_OverviewDown      = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/OverviewDown")));
     SteamVR_Actions.p_default_Update            = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Update")));
     SteamVR_Actions.p_default_ZoomingLevelUp    = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/ZoomingLevelUp")));
     SteamVR_Actions.p_default_ZoomingLevelDown  = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/ZoomingLevelDown")));
     SteamVR_Actions.p_default_ChangeView        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/ChangeView")));
     SteamVR_Actions.p_default_Restart           = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/Restart")));
     SteamVR_Actions.p_default_SpeedUp           = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SpeedUp")));
     SteamVR_Actions.p_default_SpeedDown         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/SpeedDown")));
     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")));
 }
コード例 #24
0
 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_TouchPad              = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TouchPad")));
     SteamVR_Actions.p_default_TouchpadRightHand     = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/default/in/TouchpadRightHand")));
     SteamVR_Actions.p_default_GripLeft4Show         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GripLeft4Show")));
     SteamVR_Actions.p_default_GripRight4Hide        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/GripRight4Hide")));
     SteamVR_Actions.p_default_TriggerPull           = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TriggerPull")));
     SteamVR_Actions.p_default_TriggerButton         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/TriggerButton")));
     SteamVR_Actions.p_default_MenuLeft4PointerShow  = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/MenuLeft4PointerShow")));
     SteamVR_Actions.p_default_MenuRight4PointerHide = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/default/in/MenuRight4PointerHide")));
     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")));
 }
コード例 #25
0
        // Draw the property inside the given rect
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            if (SteamVR_Input.actions == null || SteamVR_Input.actions.Length == 0)
            {
                EditorGUI.BeginProperty(position, label, property);
                EditorGUI.LabelField(position, "Please generate SteamVR Input actions");
                EditorGUI.EndProperty();
                return;
            }

            if (enumItems == null || enumItems.Length == 0)
            {
                Awake();
            }

            // Using BeginProperty / EndProperty on the parent property means that
            // prefab override logic works on the entire property.
            EditorGUI.BeginProperty(position, label, property);

            SerializedProperty actionPathProperty = property.FindPropertyRelative("actionPath");
            string             currentPath        = null;

            if (actionPathProperty != null)
            {
                currentPath = actionPathProperty.stringValue;

                if (string.IsNullOrEmpty(currentPath) == false)
                {
                    SteamVR_Action existingAction = SteamVR_Action.FindExistingActionForPartialPath(currentPath);
                    if (existingAction != null)
                    {
                        if (currentPath != existingAction.GetPath())
                        {
                            actionPathProperty.stringValue = existingAction.GetPath();
                            property.serializedObject.ApplyModifiedProperties();
                        }

                        currentPath = existingAction.GetPath();
                    }

                    for (int actionsIndex = 0; actionsIndex < actions.Length; actionsIndex++)
                    {
                        if (actions[actionsIndex].fullPath == currentPath)
                        {
                            selectedIndex = actionsIndex + 1; // account for none option
                            break;
                        }
                    }
                }
            }

            if (selectedIndex == notInitializedIndex)
            {
                selectedIndex = 0;
            }


            Rect labelPosition = position;

            labelPosition.width = EditorGUIUtility.labelWidth;
            EditorGUI.LabelField(labelPosition, label);

            Rect fieldPosition = position;

            fieldPosition.x     = (labelPosition.x + labelPosition.width);
            fieldPosition.width = EditorGUIUtility.currentViewWidth - (labelPosition.x + labelPosition.width) - 5;

            if (selectedIndex == 0 && string.IsNullOrEmpty(currentPath) == false)
            {
                if (defaultPathLabel == null)
                {
                    defaultPathLabel = string.Format(defaultPathTemplate, currentPath);
                }

                Rect defaultLabelPosition = position;
                defaultLabelPosition.y = position.y + fieldPosition.height / 2f;

                EditorGUI.LabelField(defaultLabelPosition, defaultPathLabel);
            }

            bool showInputWindow = false;

            int wasSelected = selectedIndex;

            selectedIndex = EditorGUI.Popup(fieldPosition, selectedIndex, enumItems);
            if (selectedIndex != wasSelected)
            {
                if (selectedIndex == noneIndex || selectedIndex == notInitializedIndex)
                {
                    selectedIndex = noneIndex;

                    actionPathProperty.stringValue = null;
                }
                else if (selectedIndex == addIndex)
                {
                    selectedIndex   = wasSelected; // don't change the index
                    showInputWindow = true;
                }
                else
                {
                    int actionIndex = selectedIndex - 1; // account for none option

                    actionPathProperty.stringValue = actions[actionIndex].GetPath();
                    //property.objectReferenceValue = actions[actionIndex];
                }

                property.serializedObject.ApplyModifiedProperties();
            }


            EditorGUI.EndProperty();

            if (showInputWindow)
            {
                SteamVR_Input_EditorWindow.ShowWindow(); //show the input window so they can add a new action
            }
        }
コード例 #26
0
 private static void PreInitActions()
 {
     SteamVR_Actions.p_simpleVR_Ingame_Move              = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/SimpleVR_Ingame/in/Move")));
     SteamVR_Actions.p_simpleVR_Ingame_Grab              = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/SimpleVR_Ingame/in/Grab")));
     SteamVR_Actions.p_simpleVR_Ingame_TurnAround        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/SimpleVR_Ingame/in/TurnAround")));
     SteamVR_Actions.p_simpleVR_Ingame_SkeletonLeftHand  = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/SimpleVR_Ingame/in/SkeletonLeftHand")));
     SteamVR_Actions.p_simpleVR_Ingame_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/SimpleVR_Ingame/in/SkeletonRightHand")));
     SteamVR_Actions.p_simpleVR_Ingame_TurnLeft          = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/SimpleVR_Ingame/in/TurnLeft")));
     SteamVR_Actions.p_simpleVR_Ingame_TurnRight         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/SimpleVR_Ingame/in/TurnRight")));
     SteamVR_Actions.p_simpleVR_Ingame_Haptic            = ((SteamVR_Action_Vibration)(SteamVR_Action.Create <SteamVR_Action_Vibration>("/actions/SimpleVR_Ingame/out/Haptic")));
     SteamVR_Actions.p_simpleVR_Menu_Menu  = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/SimpleVR_Menu/in/Menu")));
     SteamVR_Actions.p_simpleVR_Menu_Enter = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/SimpleVR_Menu/in/Enter")));
     SteamVR_Actions.p_simpleVR_Menu_Back  = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/SimpleVR_Menu/in/Back")));
 }
コード例 #27
0
        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();
        }
コード例 #28
0
 protected override void PreinitializeMap(SteamVR_Input_Sources inputSource, SteamVR_Action wrappingAction)
 {
     sources.Add(inputSource, new SourceElement());
     sources[inputSource].Preinitialize(wrappingAction, inputSource);
 }
コード例 #29
0
 /// <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 virtual void Preinitialize(SteamVR_Action wrappingAction, SteamVR_Input_Sources forInputSource)
 {
     action      = wrappingAction;
     inputSource = forInputSource;
 }
コード例 #30
0
 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_main_SmoothLocomotion     = ((SteamVR_Action_Vector2)(SteamVR_Action.Create <SteamVR_Action_Vector2>("/actions/Main/in/SmoothLocomotion")));
     SteamVR_Actions.p_main_SnapTurnLeft         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Main/in/SnapTurnLeft")));
     SteamVR_Actions.p_main_SnapTurnRight        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Main/in/SnapTurnRight")));
     SteamVR_Actions.p_main_DialogInteract       = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Main/in/DialogInteract")));
     SteamVR_Actions.p_main_SkipSentence         = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Main/in/SkipSentence")));
     SteamVR_Actions.p_main_HeadsetOnHead        = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Main/in/HeadsetOnHead")));
     SteamVR_Actions.p_main_Pose              = ((SteamVR_Action_Pose)(SteamVR_Action.Create <SteamVR_Action_Pose>("/actions/Main/in/Pose")));
     SteamVR_Actions.p_main_SkeletonLeftHand  = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/Main/in/SkeletonLeftHand")));
     SteamVR_Actions.p_main_SkeletonRightHand = ((SteamVR_Action_Skeleton)(SteamVR_Action.Create <SteamVR_Action_Skeleton>("/actions/Main/in/SkeletonRightHand")));
     SteamVR_Actions.p_main_ChannelSpell      = ((SteamVR_Action_Boolean)(SteamVR_Action.Create <SteamVR_Action_Boolean>("/actions/Main/in/ChannelSpell")));
 }