Add options menu (for volumes) and fix campfire sound bug at the end

This commit is contained in:
Jens Pitkänen 2020-06-11 22:49:16 +03:00
parent dec154a5f0
commit 7ded1447c6
28 changed files with 6260 additions and 1494 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3bdeb58e27d09da46979c1b24c359e70
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Paper Accent (Light)
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _EMISSION
m_LightmapFlags: 0
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.075
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.7924528, g: 0.7920911, b: 0.7887148, a: 1}
- _EmissionColor: {r: 0.2830189, g: 0.25648588, b: 0.21226417, a: 1}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0cf11b6b26768e4479d2115a81ba8bbe
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Paper Accent
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _EMISSION
m_LightmapFlags: 0
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.075
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.8396226, g: 0.79932475, b: 0.4000089, a: 1}
- _EmissionColor: {r: 0.23584908, g: 0.20456015, b: 0.15241191, a: 1}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a13ed8ddbc4e65c46a032b806cbbadce
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1070,7 +1070,7 @@ MonoBehaviour:
m_OnValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2837007226937140173}
- m_Target: {fileID: 0}
m_MethodName: set_DiaryVolume
m_Mode: 0
m_Arguments:
@ -1644,7 +1644,7 @@ MonoBehaviour:
m_OnValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2837007226937140173}
- m_Target: {fileID: 0}
m_MethodName: set_CampfireVolume
m_Mode: 0
m_Arguments:
@ -1931,7 +1931,7 @@ MonoBehaviour:
m_OnValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2837007226937140173}
- m_Target: {fileID: 0}
m_MethodName: set_MasterVolume
m_Mode: 0
m_Arguments:
@ -2248,7 +2248,7 @@ MonoBehaviour:
onValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2837007226937140173}
- m_Target: {fileID: 0}
m_MethodName: set_CameraBobbing
m_Mode: 0
m_Arguments:
@ -2792,7 +2792,7 @@ MonoBehaviour:
m_OnValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2837007226937140173}
- m_Target: {fileID: 0}
m_MethodName: set_FootstepVolume
m_Mode: 0
m_Arguments:
@ -3037,7 +3037,6 @@ GameObject:
- component: {fileID: 5400695020334462789}
- component: {fileID: 5400695020334462788}
- component: {fileID: 5400695020334462791}
- component: {fileID: 2837007226937140173}
m_Layer: 5
m_Name: Pause Menu
m_TagString: Pause Menu
@ -3091,7 +3090,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
GameState: {fileID: 0}
Options: {fileID: 2837007226937140173}
Options: {fileID: 0}
InvertMouseY: {fileID: 3688206207163001157}
CameraBobbing: {fileID: 2164472545587475712}
MouseSensitivity: {fileID: 4413106551099451582}
@ -3100,18 +3099,6 @@ MonoBehaviour:
AmbientVolume: {fileID: 1021974734450698777}
FootstepVolume: {fileID: 2556321602946883678}
DiaryVolume: {fileID: 274723588017056589}
--- !u!114 &2837007226937140173
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5400695020334462842}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4082236b98d7bfb42b8cd2b342f7f31c, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &5483146371104631563
GameObject:
m_ObjectHideFlags: 0
@ -3302,7 +3289,7 @@ MonoBehaviour:
m_OnValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2837007226937140173}
- m_Target: {fileID: 0}
m_MethodName: set_AmbientVolume
m_Mode: 0
m_Arguments:
@ -3396,7 +3383,7 @@ MonoBehaviour:
onValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2837007226937140173}
- m_Target: {fileID: 0}
m_MethodName: set_InvertMouseY
m_Mode: 0
m_Arguments:
@ -4281,7 +4268,7 @@ MonoBehaviour:
m_OnValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2837007226937140173}
- m_Target: {fileID: 0}
m_MethodName: set_MouseSensitivity
m_Mode: 0
m_Arguments:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7559c29e50429df469805253b3ddd150
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1335,7 +1335,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8080320306017838338}
m_LocalRotation: {x: -0.15495361, y: -0.0021839752, z: -0.0139227295, w: 0.9878213}
m_LocalPosition: {x: 0, y: 0.033, z: -0.024}
m_LocalPosition: {x: -0, y: 0.037, z: -0.014}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 2964009490562855080}

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@ public class Campfire : MonoBehaviour {
public bool OutOfCamp = false;
public float TimeToEnd {
get {
return Fuel - 0.7f;
return Fuel / FuelTickingMultiplier - 0.7f;
}
}

View File

@ -17,7 +17,7 @@ public class Options : MonoBehaviour {
InvertMouseY = false;
CameraBobbing = true;
MouseSensitivity = 2f;
MasterVolume = 0.5f;
MasterVolume = 1f;
CampfireVolume = 1f;
AmbientVolume = 1f;
FootstepVolume = 1f;

View File

@ -0,0 +1,42 @@
using Boo.Lang.Runtime.DynamicDispatching;
using UnityEngine;
using Valve.VR;
using Valve.VR.InteractionSystem;
public class OptionsVR : MonoBehaviour {
public Options Options;
public Transform Display;
public Transform Anchor;
public SteamVR_Action_Boolean MenuInput;
public bool MenuOpen = false;
[Header("Sliders")]
public LinearMapping MasterSlider;
public LinearMapping FireSlider;
public LinearMapping AmbientSlider;
public LinearMapping FootstepsSlider;
public LinearMapping DiarySlider;
public LinearMapping TeleportSlider;
private bool WasMenuOpen = false;
private void Update() {
if (MenuInput.stateDown) {
MenuOpen = !MenuOpen;
} else if (MenuOpen && (Display.position - Anchor.position).magnitude > 2) {
MenuOpen = false;
}
if (MenuOpen && !WasMenuOpen) {
transform.position = Anchor.position;
transform.rotation = Anchor.rotation;
}
Display.localScale = Vector3.Lerp(Display.localScale, MenuOpen ? new Vector3(1, 1, 1) : Vector3.zero, 10f * Time.deltaTime);
WasMenuOpen = MenuOpen;
Options.MasterVolume = MasterSlider.value;
Options.CampfireVolume = FireSlider.value;
Options.AmbientVolume = AmbientSlider.value;
Options.FootstepVolume = FootstepsSlider.value;
Options.DiaryVolume = DiarySlider.value;
Options.TeleportVolume = TeleportSlider.value;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: df02e48cfbe57fb4490bdb6977d7e197
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -10,11 +10,11 @@ public class StartsInHand : MonoBehaviour {
private void Update() {
if (StillInitiallyAttached) {
GrabTypes GrabType = GrabTypes.Scripted;
if (SteamVR_Actions.default_GrabGrip.state) {
GrabTypes GrabType = GrabTypes.Grip;
if (Hand.grabGripAction.state) {
StillInitiallyAttached = false;
GrabType = GrabTypes.Grip;
} else if (SteamVR_Actions.default_GrabPinch.state) {
} else if (Hand.grabPinchAction.state) {
StillInitiallyAttached = false;
GrabType = GrabTypes.Pinch;
}

View File

@ -3,8 +3,9 @@
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
@ -95,7 +96,7 @@ MonoBehaviour:
pinkyFingerMovementType: 2
ignoreRootPoseData: 1
ignoreWristPoseData: 1
position: {x: -0.04388981, y: -0.009897895, z: -0.07962455}
position: {x: -0.04400178, y: -0.009077018, z: -0.07569094}
rotation: {x: 0.28326723, y: -0.33523262, z: -0.10300676, w: 0.89261883}
bonePositions:
- {x: -0, y: 0, z: 0}
@ -131,33 +132,34 @@ MonoBehaviour:
- {x: -0.031805996, y: -0.08721431, z: 0.12101539}
boneRotations:
- {x: -6.123234e-17, y: 1, z: 6.123234e-17, w: -0.00000004371139}
- {x: -0.078608155, y: -0.92027926, z: 0.3792963, w: -0.055146642}
- {x: -0.42518422, y: -0.6729627, z: 0.30799896, w: 0.52103376}
- {x: 0.08715631, y: -0.06785321, z: -0.0796749, w: 0.9906825}
- {x: -0.6039541, y: -0.76872486, z: -0.13402164, w: -0.16229533}
- {x: -0.27855068, y: -0.81650376, z: 0.18332511, w: 0.47129935}
- {x: 0.08715631, y: -0.06785321, z: -0.0796749, w: 0.9906824}
- {x: -0.031207316, y: -0.18094091, z: -0.29972476, w: 0.93618995}
- {x: -1.3877788e-17, y: -1.3877788e-17, z: -5.551115e-17, w: 1}
- {x: -0.65611017, y: -0.4034549, z: -0.46588522, w: 0.43553954}
- {x: -0.0074569276, y: 0.039040428, z: -0.4382945, w: 0.89795226}
- {x: 0.045792613, y: 0.0024561172, z: -0.054228723, w: 0.99747497}
- {x: -0.012531666, y: 0.037719022, z: -0.5526943, w: 0.8324357}
- {x: 0.045609348, y: 0.004786109, z: -0.10499106, w: 0.99341524}
- {x: -0.000951346, y: 0.022837702, z: -0.109021865, w: 0.99377656}
- {x: 6.938894e-18, y: 1.9428903e-16, z: -1.348151e-33, w: 1}
- {x: -0.546723, y: -0.46074906, z: -0.44252017, w: 0.54127645}
- {x: -0.18312137, y: 0.026026193, z: -0.35584927, w: 0.91605705}
- {x: 0.01933357, y: -0.011926016, z: -0.12649985, w: 0.99170655}
- {x: -0.18459816, y: -0.011586272, z: -0.53393894, w: 0.8250446}
- {x: 0.018267192, y: -0.013502943, z: -0.043021075, w: 0.99881595}
- {x: -0.007192388, y: 0.027495407, z: -0.07201239, w: 0.9969988}
- {x: 1.1639192e-17, y: -5.602331e-17, z: -0.040125635, w: 0.9991947}
- {x: -0.5023972, y: -0.44651043, z: -0.51322633, w: 0.5336893}
- {x: -0.07072262, y: 0.0938656, z: -0.19323072, w: 0.9740891}
- {x: -0.22746634, y: -0.047153886, z: -0.39153343, w: 0.89035785}
- {x: -0.0020376742, y: -0.0009295046, z: -0.44058636, w: 0.89770746}
- {x: -0.004270261, y: 0.011974642, z: -0.32042667, w: 0.947188}
- {x: 6.938894e-18, y: -9.62965e-35, z: -1.3877788e-17, w: 1}
- {x: -0.52943724, y: -0.312252, z: -0.6584001, w: 0.43440092}
- {x: -0.024608618, y: 0.04628936, z: -0.4956364, w: 0.8669465}
- {x: 0.022276456, y: 0.06382713, z: -0.3065777, w: 0.9494419}
- {x: -0.00201019, y: 0.052079126, z: 0.073525675, w: 0.99593055}
- {x: -0.026747879, y: 0.04508703, z: -0.5356648, w: 0.84280187}
- {x: 0.01782634, y: 0.06521017, z: -0.37125823, w: 0.92606544}
- {x: -0.028132586, y: 0.043873146, z: -0.44147068, w: 0.8957608}
- {x: 0, y: 0, z: 1.9081958e-17, w: 1}
- {x: 0.20274544, y: 0.59426665, z: 0.2494411, w: 0.73723847}
- {x: 0.6235274, y: -0.66380864, z: -0.29373443, w: -0.29033053}
- {x: 0.6780625, y: -0.6592852, z: -0.26568344, w: -0.18704711}
- {x: 0.7367927, y: -0.6347571, z: -0.14393571, w: -0.18303718}
- {x: 0.7584072, y: -0.6393418, z: -0.12667806, w: -0.0036594148}
applyToSkeletonRoot: 1

View File

@ -17,14 +17,6 @@ namespace Valve.VR
public class SteamVR_Input_ActionSet_default : Valve.VR.SteamVR_ActionSet
{
public virtual SteamVR_Action_Boolean InteractUI
{
get
{
return SteamVR_Actions.default_InteractUI;
}
}
public virtual SteamVR_Action_Boolean Teleport
{
get
@ -105,6 +97,14 @@ namespace Valve.VR
}
}
public virtual SteamVR_Action_Boolean OpenMenu
{
get
{
return SteamVR_Actions.default_OpenMenu;
}
}
public virtual SteamVR_Action_Vibration Haptic
{
get

View File

@ -17,8 +17,6 @@ namespace Valve.VR
public partial class SteamVR_Actions
{
private static SteamVR_Action_Boolean p_default_InteractUI;
private static SteamVR_Action_Boolean p_default_Teleport;
private static SteamVR_Action_Boolean p_default_GrabPinch;
@ -39,6 +37,8 @@ namespace Valve.VR
private static SteamVR_Action_Boolean p_default_SnapTurnRight;
private static SteamVR_Action_Boolean p_default_OpenMenu;
private static SteamVR_Action_Vibration p_default_Haptic;
private static SteamVR_Action_Vector2 p_platformer_Move;
@ -55,14 +55,6 @@ namespace Valve.VR
private static SteamVR_Action_Pose p_mixedreality_ExternalCamera;
public static SteamVR_Action_Boolean default_InteractUI
{
get
{
return SteamVR_Actions.p_default_InteractUI.GetCopy<SteamVR_Action_Boolean>();
}
}
public static SteamVR_Action_Boolean default_Teleport
{
get
@ -143,6 +135,14 @@ namespace Valve.VR
}
}
public static SteamVR_Action_Boolean default_OpenMenu
{
get
{
return SteamVR_Actions.p_default_OpenMenu.GetCopy<SteamVR_Action_Boolean>();
}
}
public static SteamVR_Action_Vibration default_Haptic
{
get
@ -210,7 +210,6 @@ namespace Valve.VR
private static void InitializeActionArrays()
{
Valve.VR.SteamVR_Input.actions = new Valve.VR.SteamVR_Action[] {
SteamVR_Actions.default_InteractUI,
SteamVR_Actions.default_Teleport,
SteamVR_Actions.default_GrabPinch,
SteamVR_Actions.default_GrabGrip,
@ -221,6 +220,7 @@ namespace Valve.VR
SteamVR_Actions.default_HeadsetOnHead,
SteamVR_Actions.default_SnapTurnLeft,
SteamVR_Actions.default_SnapTurnRight,
SteamVR_Actions.default_OpenMenu,
SteamVR_Actions.default_Haptic,
SteamVR_Actions.platformer_Move,
SteamVR_Actions.platformer_Jump,
@ -230,7 +230,6 @@ namespace Valve.VR
SteamVR_Actions.buggy_Reset,
SteamVR_Actions.mixedreality_ExternalCamera};
Valve.VR.SteamVR_Input.actionsIn = new Valve.VR.ISteamVR_Action_In[] {
SteamVR_Actions.default_InteractUI,
SteamVR_Actions.default_Teleport,
SteamVR_Actions.default_GrabPinch,
SteamVR_Actions.default_GrabGrip,
@ -241,6 +240,7 @@ namespace Valve.VR
SteamVR_Actions.default_HeadsetOnHead,
SteamVR_Actions.default_SnapTurnLeft,
SteamVR_Actions.default_SnapTurnRight,
SteamVR_Actions.default_OpenMenu,
SteamVR_Actions.platformer_Move,
SteamVR_Actions.platformer_Jump,
SteamVR_Actions.buggy_Steering,
@ -256,13 +256,13 @@ namespace Valve.VR
SteamVR_Actions.default_Pose,
SteamVR_Actions.mixedreality_ExternalCamera};
Valve.VR.SteamVR_Input.actionsBoolean = new Valve.VR.SteamVR_Action_Boolean[] {
SteamVR_Actions.default_InteractUI,
SteamVR_Actions.default_Teleport,
SteamVR_Actions.default_GrabPinch,
SteamVR_Actions.default_GrabGrip,
SteamVR_Actions.default_HeadsetOnHead,
SteamVR_Actions.default_SnapTurnLeft,
SteamVR_Actions.default_SnapTurnRight,
SteamVR_Actions.default_OpenMenu,
SteamVR_Actions.platformer_Jump,
SteamVR_Actions.buggy_Brake,
SteamVR_Actions.buggy_Reset};
@ -277,7 +277,6 @@ namespace Valve.VR
SteamVR_Actions.default_SkeletonLeftHand,
SteamVR_Actions.default_SkeletonRightHand};
Valve.VR.SteamVR_Input.actionsNonPoseNonSkeletonIn = new Valve.VR.ISteamVR_Action_In[] {
SteamVR_Actions.default_InteractUI,
SteamVR_Actions.default_Teleport,
SteamVR_Actions.default_GrabPinch,
SteamVR_Actions.default_GrabGrip,
@ -285,6 +284,7 @@ namespace Valve.VR
SteamVR_Actions.default_HeadsetOnHead,
SteamVR_Actions.default_SnapTurnLeft,
SteamVR_Actions.default_SnapTurnRight,
SteamVR_Actions.default_OpenMenu,
SteamVR_Actions.platformer_Move,
SteamVR_Actions.platformer_Jump,
SteamVR_Actions.buggy_Steering,
@ -295,7 +295,6 @@ namespace Valve.VR
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")));
@ -306,6 +305,7 @@ namespace Valve.VR
SteamVR_Actions.p_default_HeadsetOnHead = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/HeadsetOnHead")));
SteamVR_Actions.p_default_SnapTurnLeft = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/SnapTurnLeft")));
SteamVR_Actions.p_default_SnapTurnRight = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/SnapTurnRight")));
SteamVR_Actions.p_default_OpenMenu = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/OpenMenu")));
SteamVR_Actions.p_default_Haptic = ((SteamVR_Action_Vibration)(SteamVR_Action.Create<SteamVR_Action_Vibration>("/actions/default/out/Haptic")));
SteamVR_Actions.p_platformer_Move = ((SteamVR_Action_Vector2)(SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/platformer/in/Move")));
SteamVR_Actions.p_platformer_Jump = ((SteamVR_Action_Boolean)(SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/platformer/in/Jump")));

View File

@ -1,9 +1,5 @@
{
"actions": [
{
"name": "/actions/default/in/InteractUI",
"type": "boolean"
},
{
"name": "/actions/default/in/Teleport",
"type": "boolean"
@ -49,6 +45,10 @@
"name": "/actions/default/in/SnapTurnRight",
"type": "boolean"
},
{
"name": "/actions/default/in/OpenMenu",
"type": "boolean"
},
{
"name": "/actions/default/out/Haptic",
"type": "vibration"
@ -157,7 +157,6 @@
"/actions/default/in/GrabGrip": "Grab Grip",
"/actions/default/in/GrabPinch": "Grab Pinch",
"/actions/default/in/HeadsetOnHead": "Headset on head (proximity sensor)",
"/actions/default/in/InteractUI": "Interact With UI",
"/actions/default/in/Pose": "Pose",
"/actions/default/in/SkeletonLeftHand": "Skeleton (Left)",
"/actions/default/in/SkeletonRightHand": "Skeleton (Right)",
@ -165,7 +164,8 @@
"/actions/default/out/Haptic": "Haptic",
"/actions/platformer/in/Jump": "Jump",
"/actions/default/in/SnapTurnLeft": "Snap Turn (Left)",
"/actions/default/in/SnapTurnRight": "Snap Turn (Right)"
"/actions/default/in/SnapTurnRight": "Snap Turn (Right)",
"/actions/default/in/OpenMenu": "Open Menu"
}
]
}

View File

@ -1,307 +1,317 @@
{
"bindings" : {
"/actions/buggy" : {
"sources" : [
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "joystick",
"path" : "/user/hand/left/input/joystick"
},
{
"inputs" : {
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "joystick",
"path" : "/user/hand/right/input/joystick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trackpad"
"bindings": {
"/actions/buggy": {
"chords": [],
"poses": [],
"haptics": [],
"sources": [
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/buggy/in/throttle"
}
]
},
"/actions/default" : {
"haptics" : [
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/left/output/haptic"
},
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/right/output/haptic"
}
],
"poses" : [
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/left/pose/raw"
},
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/right/pose/raw"
}
],
"sources": [
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
},
"mode": "button",
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
},
"mode": "button",
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.95",
"click_deactivate_threshold": "0.9"
},
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.95",
"click_deactivate_threshold": "0.9"
},
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
},
"mode": "button",
"path": "/user/hand/left/input/grip"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
},
"mode": "button",
"path": "/user/hand/right/input/grip"
},
{
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "trigger",
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "trigger",
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/teleport"
}
},
"mode": "button",
"path": "/user/hand/left/input/trackpad"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/teleport"
}
},
"mode": "button",
"path": "/user/hand/right/input/trackpad"
},
{
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"path": "/user/hand/left/input/joystick"
},
{
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"path": "/user/hand/right/input/joystick"
},
{
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"path": "/user/hand/left/input/joystick"
},
{
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"path": "/user/hand/right/input/joystick"
}
]
},
"/actions/platformer" : {
"sources" : [
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "joystick",
"path" : "/user/hand/left/input/joystick"
},
{
"inputs" : {
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "joystick",
"path" : "/user/hand/right/input/joystick"
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/buggy/in/throttle"
}
]
}
},
"controller_type" : "holographic_controller",
"description" : "",
"name" : "Default bindings for Windows Mixed Reality Controllers"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/buggy/in/steering"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/buggy/in/steering"
}
}
},
{
"path": "/user/hand/left/input/trackpad",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/reset"
}
}
},
{
"path": "/user/hand/right/input/trackpad",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/reset"
}
}
},
{
"path": "/user/hand/left/input/trackpad",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/brake"
}
}
},
{
"path": "/user/hand/right/input/trackpad",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/brake"
}
}
}
],
"skeleton": []
},
"/actions/default": {
"chords": [],
"poses": [
{
"output": "/actions/default/in/pose",
"path": "/user/hand/left/pose/raw"
},
{
"output": "/actions/default/in/pose",
"path": "/user/hand/right/pose/raw"
}
],
"haptics": [
{
"output": "/actions/default/out/haptic",
"path": "/user/hand/left/output/haptic"
},
{
"output": "/actions/default/out/haptic",
"path": "/user/hand/right/output/haptic"
}
],
"sources": [
{
"path": "/user/hand/left/input/trigger",
"mode": "button",
"parameters": {
"click_activate_threshold": "0.95",
"click_deactivate_threshold": "0.9"
},
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "button",
"parameters": {
"click_activate_threshold": "0.95",
"click_deactivate_threshold": "0.9"
},
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
}
},
{
"path": "/user/hand/left/input/grip",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
}
},
{
"path": "/user/hand/right/input/grip",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
}
},
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
}
},
{
"path": "/user/hand/left/input/trackpad",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/right/input/trackpad",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
}
}
],
"skeleton": []
},
"/actions/platformer": {
"chords": [],
"poses": [],
"haptics": [],
"sources": [
{
"path": "/user/hand/left/input/trigger",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/platformer/in/jump"
}
}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/platformer/in/jump"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/platformer/in/move"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/platformer/in/move"
}
}
}
],
"skeleton": []
}
},
"controller_type": "holographic_controller",
"description": "",
"name": "Default bindings for Windows Mixed Reality Controllers"
}

View File

@ -1,326 +1,332 @@
{
"bindings" : {
"/actions/buggy" : {
"sources" : [
{
"inputs" : {
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "joystick",
"path" : "/user/hand/left/input/thumbstick"
},
{
"inputs" : {
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "joystick",
"path" : "/user/hand/right/input/thumbstick"
},
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/a"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/a"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/b"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/b"
"bindings": {
"/actions/buggy": {
"chords": [],
"poses": [],
"haptics": [],
"sources": [
{
"path": "/user/hand/left/input/thumbstick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/buggy/in/steering"
}
]
},
"/actions/default" : {
"chords" : [],
"haptics" : [
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/left/output/haptic"
},
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/right/output/haptic"
}
],
"poses" : [
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/left/pose/raw"
},
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/right/pose/raw"
}
],
"skeleton" : [
{
"output" : "/actions/default/in/skeletonlefthand",
"path" : "/user/hand/left/input/skeleton/left"
},
{
"output" : "/actions/default/in/skeletonrighthand",
"path" : "/user/hand/right/input/skeleton/right"
}
],
"sources": [
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
},
"mode": "button",
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"force": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "force_sensor",
"path": "/user/hand/left/input/grip"
},
{
"inputs": {
"force": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "force_sensor",
"path": "/user/hand/right/input/grip"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/teleport"
}
},
"mode": "button",
"path": "/user/hand/left/input/trackpad"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
},
"mode": "button",
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/teleport"
}
},
"mode": "button",
"path": "/user/hand/right/input/trackpad"
},
{
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"path": "/user/hand/left/input/thumbstick"
},
{
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"path": "/user/hand/right/input/thumbstick"
},
{
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"path": "/user/hand/left/input/thumbstick"
},
{
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"path": "/user/hand/right/input/thumbstick"
},
{
"inputs": {
"grab": {
"output": "/actions/default/in/grabgrip"
}
},
"mode": "grab",
"parameters": {
"force_hold_threshold": "0.02",
"force_release_threshold": "0.01"
},
"path": "/user/hand/left/input/grip"
},
{
"inputs": {
"grab": {
"output": "/actions/default/in/grabgrip"
}
},
"mode": "grab",
"parameters": {
"force_hold_threshold": "0.02",
"force_release_threshold": "0.01"
},
"path": "/user/hand/right/input/grip"
},
{
"inputs": {
"grab": {
"output": "/actions/default/in/grabpinch"
}
},
"mode": "grab",
"parameters": {
"force_hold_threshold": "0.02",
"force_release_threshold": "0.01"
},
"path": "/user/hand/left/input/pinch"
},
{
"inputs": {
"grab": {
"output": "/actions/default/in/grabpinch"
}
},
"mode": "grab",
"parameters": {
"force_hold_threshold": "0.02",
"force_release_threshold": "0.01"
},
"path": "/user/hand/right/input/pinch"
}
]
},
"/actions/platformer" : {
"sources" : [
{
"inputs" : {
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "joystick",
"path" : "/user/hand/left/input/thumbstick"
},
{
"inputs" : {
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "joystick",
"path" : "/user/hand/right/input/thumbstick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trigger"
},
{
"path": "/user/hand/right/input/thumbstick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/buggy/in/steering"
}
]
}
},
"controller_type" : "knuckles",
"description" : "",
"name" : "knuckles_default"
}
}
},
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/buggy/in/throttle"
}
}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/buggy/in/throttle"
}
}
},
{
"path": "/user/hand/left/input/a",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/brake"
}
}
},
{
"path": "/user/hand/right/input/a",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/brake"
}
}
},
{
"path": "/user/hand/left/input/b",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/reset"
}
}
},
{
"path": "/user/hand/right/input/b",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/reset"
}
}
}
],
"skeleton": []
},
"/actions/default": {
"chords": [],
"poses": [
{
"output": "/actions/default/in/pose",
"path": "/user/hand/left/pose/raw"
},
{
"output": "/actions/default/in/pose",
"path": "/user/hand/right/pose/raw"
}
],
"haptics": [
{
"output": "/actions/default/out/haptic",
"path": "/user/hand/left/output/haptic"
},
{
"output": "/actions/default/out/haptic",
"path": "/user/hand/right/output/haptic"
}
],
"sources": [
{
"path": "/user/hand/left/input/grip",
"mode": "force_sensor",
"parameters": {},
"inputs": {
"force": {
"output": "/actions/default/in/squeeze"
}
}
},
{
"path": "/user/hand/right/input/grip",
"mode": "force_sensor",
"parameters": {},
"inputs": {
"force": {
"output": "/actions/default/in/squeeze"
}
}
},
{
"path": "/user/hand/left/input/trackpad",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/right/input/trackpad",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/left/input/thumbstick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/right/input/thumbstick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/left/input/thumbstick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
}
},
{
"path": "/user/hand/right/input/thumbstick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
}
},
{
"path": "/user/hand/left/input/grip",
"mode": "grab",
"parameters": {
"force_hold_threshold": "0.02",
"force_release_threshold": "0.01"
},
"inputs": {
"grab": {
"output": "/actions/default/in/grabgrip"
}
}
},
{
"path": "/user/hand/right/input/grip",
"mode": "grab",
"parameters": {
"force_hold_threshold": "0.02",
"force_release_threshold": "0.01"
},
"inputs": {
"grab": {
"output": "/actions/default/in/grabgrip"
}
}
},
{
"path": "/user/hand/left/input/pinch",
"mode": "grab",
"parameters": {
"force_hold_threshold": "0.02",
"force_release_threshold": "0.01"
},
"inputs": {
"grab": {
"output": "/actions/default/in/grabpinch"
}
}
},
{
"path": "/user/hand/right/input/pinch",
"mode": "grab",
"parameters": {
"force_hold_threshold": "0.02",
"force_release_threshold": "0.01"
},
"inputs": {
"grab": {
"output": "/actions/default/in/grabpinch"
}
}
}
],
"skeleton": [
{
"output": "/actions/default/in/skeletonlefthand",
"path": "/user/hand/left/input/skeleton/left"
},
{
"output": "/actions/default/in/skeletonrighthand",
"path": "/user/hand/right/input/skeleton/right"
}
]
},
"/actions/platformer": {
"chords": [],
"poses": [],
"haptics": [],
"sources": [
{
"path": "/user/hand/left/input/thumbstick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/platformer/in/move"
}
}
},
{
"path": "/user/hand/right/input/thumbstick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/platformer/in/move"
}
}
},
{
"path": "/user/hand/left/input/trigger",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/platformer/in/jump"
}
}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/platformer/in/jump"
}
}
}
],
"skeleton": []
}
},
"controller_type": "knuckles",
"description": "",
"name": "knuckles_default"
}

View File

@ -1,315 +1,319 @@
{
"bindings" : {
"/actions/buggy" : {
"sources" : [
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "joystick",
"path" : "/user/hand/left/input/joystick"
},
{
"inputs" : {
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "joystick",
"path" : "/user/hand/right/input/joystick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/x"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/x"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/y"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/y"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/a"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/b"
"bindings": {
"/actions/buggy": {
"chords": [],
"poses": [],
"haptics": [],
"sources": [
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/buggy/in/throttle"
}
]
},
"/actions/default" : {
"chords" : [],
"haptics" : [
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/left/output/haptic"
},
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/right/output/haptic"
}
],
"poses" : [
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/left/pose/raw"
},
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/right/pose/raw"
}
],
"skeleton" : [
{
"output" : "/actions/default/in/skeletonlefthand",
"path" : "/user/hand/left/input/skeleton/left"
},
{
"output" : "/actions/default/in/skeletonrighthand",
"path" : "/user/hand/right/input/skeleton/right"
}
],
"sources": [
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
},
"mode": "button",
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7"
},
"path": "/user/hand/left/input/grip"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7",
"force_input": "value"
},
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
},
"mode": "button",
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7"
},
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"path": "/user/hand/left/input/joystick"
},
{
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"path": "/user/hand/right/input/joystick"
},
{
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"path": "/user/hand/left/input/joystick"
},
{
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"path": "/user/hand/right/input/joystick"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7"
},
"path": "/user/hand/right/input/grip"
},
{
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "trigger",
"path": "/user/hand/left/input/grip"
},
{
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "trigger",
"path": "/user/hand/right/input/grip"
}
]
},
"/actions/platformer" : {
"sources" : [
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
},
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "joystick",
"path" : "/user/hand/left/input/joystick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
},
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "joystick",
"path" : "/user/hand/right/input/joystick"
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/buggy/in/throttle"
}
]
}
},
"controller_type" : "oculus_touch",
"description" : "",
"name" : "oculus_touch"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/buggy/in/steering"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/buggy/in/steering"
}
}
},
{
"path": "/user/hand/left/input/x",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/brake"
}
}
},
{
"path": "/user/hand/right/input/x",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/brake"
}
}
},
{
"path": "/user/hand/left/input/y",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/reset"
}
}
},
{
"path": "/user/hand/right/input/y",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/reset"
}
}
},
{
"path": "/user/hand/right/input/a",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/brake"
}
}
},
{
"path": "/user/hand/right/input/b",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/reset"
}
}
}
],
"skeleton": []
},
"/actions/default": {
"chords": [],
"poses": [
{
"output": "/actions/default/in/pose",
"path": "/user/hand/left/pose/raw"
},
{
"output": "/actions/default/in/pose",
"path": "/user/hand/right/pose/raw"
}
],
"haptics": [
{
"output": "/actions/default/out/haptic",
"path": "/user/hand/left/output/haptic"
},
{
"output": "/actions/default/out/haptic",
"path": "/user/hand/right/output/haptic"
}
],
"sources": [
{
"path": "/user/hand/left/input/grip",
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7"
},
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
}
},
{
"path": "/user/hand/left/input/trigger",
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7",
"force_input": "value"
},
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7"
},
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
}
},
{
"path": "/user/hand/right/input/grip",
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7"
},
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
}
},
{
"path": "/user/hand/left/input/grip",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
}
},
{
"path": "/user/hand/right/input/grip",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
}
}
],
"skeleton": [
{
"output": "/actions/default/in/skeletonlefthand",
"path": "/user/hand/left/input/skeleton/left"
},
{
"output": "/actions/default/in/skeletonrighthand",
"path": "/user/hand/right/input/skeleton/right"
}
]
},
"/actions/platformer": {
"chords": [],
"poses": [],
"haptics": [],
"sources": [
{
"path": "/user/hand/left/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/platformer/in/jump"
},
"position": {
"output": "/actions/platformer/in/move"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/platformer/in/jump"
},
"position": {
"output": "/actions/platformer/in/move"
}
}
}
],
"skeleton": []
}
},
"controller_type": "oculus_touch",
"description": "",
"name": "oculus_touch"
}

View File

@ -1,6 +1,13 @@
{
"action_manifest_version" : 0,
"alias_info" : {},
"app_key" : "application.generated.unity.nightwatch.exe",
"bindings" : {
"/actions/buggy" : {
"chords" : [],
"haptics" : [],
"poses" : [],
"skeleton" : [],
"sources" : [
{
"inputs" : {
@ -96,153 +103,157 @@
"path" : "/user/hand/right/input/skeleton/right"
}
],
"sources": [
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
"sources" : [
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/grabgrip"
}
},
"mode" : "button",
"parameters" : {
"click_activate_threshold" : "0.05",
"click_deactivate_threshold" : "0",
"force_input" : "force"
},
"path" : "/user/hand/left/input/grip"
},
"mode": "button",
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/grabpinch"
}
},
"mode" : "button",
"parameters" : {
"click_activate_threshold" : "0.75",
"click_deactivate_threshold" : "0.7",
"force_input" : "value"
},
"path" : "/user/hand/left/input/trigger"
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.05",
"click_deactivate_threshold": "0",
"force_input": "force"
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/grabpinch"
}
},
"mode" : "button",
"parameters" : {
"click_activate_threshold" : "0.75",
"click_deactivate_threshold" : "0.7"
},
"path" : "/user/hand/right/input/trigger"
},
"path": "/user/hand/left/input/grip"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
{
"inputs" : {
"center" : {
"output" : "/actions/default/in/teleport"
},
"east" : {
"output" : "/actions/default/in/snapturnright"
},
"north" : {
"output" : "/actions/default/in/teleport"
},
"south" : {
"output" : "/actions/default/in/teleport"
},
"west" : {
"output" : "/actions/default/in/snapturnleft"
}
},
"mode" : "dpad",
"parameters" : {
"deadzone_pct" : "90",
"overlap_pct" : "15",
"sub_mode" : "click"
},
"path" : "/user/hand/left/input/trackpad"
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.75",
"click_deactivate_threshold": "0.7",
"force_input": "value"
{
"inputs" : {
"center" : {
"output" : "/actions/default/in/teleport"
},
"east" : {
"output" : "/actions/default/in/snapturnright"
},
"north" : {
"output" : "/actions/default/in/teleport"
},
"south" : {
"output" : "/actions/default/in/teleport"
},
"west" : {
"output" : "/actions/default/in/snapturnleft"
}
},
"mode" : "dpad",
"parameters" : {
"deadzone_pct" : "90",
"overlap_pct" : "15",
"sub_mode" : "click"
},
"path" : "/user/hand/right/input/trackpad"
},
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/grabgrip"
}
},
"mode" : "button",
"parameters" : {
"click_activate_threshold" : "0.05",
"click_deactivate_threshold" : "0",
"force_input" : "force"
},
"path" : "/user/hand/right/input/grip"
},
"mode": "button",
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
{
"inputs" : {
"pull" : {
"output" : "/actions/default/in/squeeze"
}
},
"mode" : "trigger",
"path" : "/user/hand/left/input/trigger"
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.75",
"click_deactivate_threshold": "0.7"
{
"inputs" : {
"pull" : {
"output" : "/actions/default/in/squeeze"
}
},
"mode" : "trigger",
"path" : "/user/hand/right/input/trigger"
},
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"center": {
"output": "/actions/default/in/teleport"
},
"east": {
"output": "/actions/default/in/snapturnright"
},
"north": {
"output": "/actions/default/in/teleport"
},
"south": {
"output": "/actions/default/in/teleport"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/openmenu"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/application_menu"
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "90",
"overlap_pct": "15",
"sub_mode": "click"
},
"path": "/user/hand/left/input/trackpad"
},
{
"inputs": {
"center": {
"output": "/actions/default/in/teleport"
},
"east": {
"output": "/actions/default/in/snapturnright"
},
"north": {
"output": "/actions/default/in/teleport"
},
"south": {
"output": "/actions/default/in/teleport"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "90",
"overlap_pct": "15",
"sub_mode": "click"
},
"path": "/user/hand/right/input/trackpad"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.05",
"click_deactivate_threshold": "0",
"force_input": "force"
},
"path": "/user/hand/right/input/grip"
},
{
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "trigger",
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "trigger",
"path": "/user/hand/right/input/trigger"
}
]
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/openmenu"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/application_menu"
}
]
},
"/actions/platformer" : {
"chords" : [],
"haptics" : [],
"poses" : [],
"skeleton" : [],
"sources" : [
{
"inputs" : {
@ -283,7 +294,10 @@
]
}
},
"category" : "steamvr_input",
"controller_type" : "vive_controller",
"description" : "",
"name" : "vive_controller"
"name" : "vive_controller",
"options" : {},
"simulated_actions" : []
}

View File

@ -1,289 +1,293 @@
{
"bindings" : {
"/actions/buggy" : {
"sources" : [
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"pull" : {
"output" : "/actions/buggy/in/throttle"
}
},
"mode" : "trigger",
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "joystick",
"path" : "/user/hand/left/input/joystick"
},
{
"inputs" : {
"position" : {
"output" : "/actions/buggy/in/steering"
}
},
"mode" : "joystick",
"path" : "/user/hand/right/input/joystick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/x"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/y"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/brake"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/a"
},
{
"inputs" : {
"click" : {
"output" : "/actions/buggy/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/b"
"bindings": {
"/actions/buggy": {
"chords": [],
"poses": [],
"haptics": [],
"sources": [
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/buggy/in/throttle"
}
]
},
"/actions/default" : {
"chords" : [],
"haptics" : [
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/left/output/haptic"
},
{
"output" : "/actions/default/out/haptic",
"path" : "/user/hand/right/output/haptic"
}
],
"poses" : [
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/left/pose/raw"
},
{
"output" : "/actions/default/in/pose",
"path" : "/user/hand/right/pose/raw"
}
],
"skeleton" : [
{
"output" : "/actions/default/in/skeletonlefthand",
"path" : "/user/hand/left/input/skeleton/left"
},
{
"output" : "/actions/default/in/skeletonrighthand",
"path" : "/user/hand/right/input/skeleton/right"
}
],
"sources": [
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
},
"mode": "button",
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
},
"mode": "button",
"path": "/user/hand/left/input/grip"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7",
"force_input": "value"
},
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/interactui"
}
},
"mode": "button",
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
},
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7"
},
"path": "/user/hand/right/input/trigger"
},
{
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"path": "/user/hand/left/input/joystick"
},
{
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"path": "/user/hand/right/input/joystick"
},
{
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"path": "/user/hand/left/input/joystick"
},
{
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
},
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"path": "/user/hand/right/input/joystick"
},
{
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
},
"mode": "button",
"path": "/user/hand/right/input/grip"
},
{
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "trigger",
"path": "/user/hand/left/input/trigger"
},
{
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
},
"mode": "trigger",
"path": "/user/hand/right/input/trigger"
}
]
},
"/actions/platformer" : {
"sources" : [
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
},
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "joystick",
"path" : "/user/hand/left/input/joystick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/platformer/in/jump"
},
"position" : {
"output" : "/actions/platformer/in/move"
}
},
"mode" : "joystick",
"path" : "/user/hand/right/input/joystick"
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/buggy/in/throttle"
}
]
}
},
"controller_type" : "vive_cosmos_controller",
"description" : "",
"name" : "vive_cosmos_controller"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/buggy/in/steering"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"position": {
"output": "/actions/buggy/in/steering"
}
}
},
{
"path": "/user/hand/left/input/x",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/brake"
}
}
},
{
"path": "/user/hand/left/input/y",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/reset"
}
}
},
{
"path": "/user/hand/right/input/a",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/brake"
}
}
},
{
"path": "/user/hand/right/input/b",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/buggy/in/reset"
}
}
}
],
"skeleton": []
},
"/actions/default": {
"chords": [],
"poses": [
{
"output": "/actions/default/in/pose",
"path": "/user/hand/left/pose/raw"
},
{
"output": "/actions/default/in/pose",
"path": "/user/hand/right/pose/raw"
}
],
"haptics": [
{
"output": "/actions/default/out/haptic",
"path": "/user/hand/left/output/haptic"
},
{
"output": "/actions/default/out/haptic",
"path": "/user/hand/right/output/haptic"
}
],
"sources": [
{
"path": "/user/hand/left/input/grip",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
}
},
{
"path": "/user/hand/left/input/trigger",
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7",
"force_input": "value"
},
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "button",
"parameters": {
"click_activate_threshold": "0.8",
"click_deactivate_threshold": "0.7"
},
"inputs": {
"click": {
"output": "/actions/default/in/grabpinch"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "25",
"overlap_pct": "30",
"sub_mode": "touch"
},
"inputs": {
"north": {
"output": "/actions/default/in/teleport"
}
}
},
{
"path": "/user/hand/left/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "dpad",
"parameters": {
"deadzone_pct": "85",
"overlap_pct": "0",
"sub_mode": "touch"
},
"inputs": {
"east": {
"output": "/actions/default/in/snapturnright"
},
"west": {
"output": "/actions/default/in/snapturnleft"
}
}
},
{
"path": "/user/hand/right/input/grip",
"mode": "button",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/default/in/grabgrip"
}
}
},
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"parameters": {},
"inputs": {
"pull": {
"output": "/actions/default/in/squeeze"
}
}
}
],
"skeleton": [
{
"output": "/actions/default/in/skeletonlefthand",
"path": "/user/hand/left/input/skeleton/left"
},
{
"output": "/actions/default/in/skeletonrighthand",
"path": "/user/hand/right/input/skeleton/right"
}
]
},
"/actions/platformer": {
"chords": [],
"poses": [],
"haptics": [],
"sources": [
{
"path": "/user/hand/left/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/platformer/in/jump"
},
"position": {
"output": "/actions/platformer/in/move"
}
}
},
{
"path": "/user/hand/right/input/joystick",
"mode": "joystick",
"parameters": {},
"inputs": {
"click": {
"output": "/actions/platformer/in/jump"
},
"position": {
"output": "/actions/platformer/in/move"
}
}
}
],
"skeleton": []
}
},
"controller_type": "vive_cosmos_controller",
"description": "",
"name": "vive_cosmos_controller"
}

View File

@ -0,0 +1,165 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e90911e410742a1498a167540c7865bf, type: 3}
m_Name: SliderPose
m_EditorClassIdentifier:
leftHand:
inputSource: 1
thumbFingerMovementType: 0
indexFingerMovementType: 2
middleFingerMovementType: 2
ringFingerMovementType: 2
pinkyFingerMovementType: 2
ignoreRootPoseData: 1
ignoreWristPoseData: 0
position: {x: 0.04400178, y: -0.009077018, z: -0.07569094}
rotation: {x: -0.28326723, y: -0.33523262, z: -0.10300676, w: -0.89261883}
bonePositions:
- {x: -0, y: 0, z: 0}
- {x: -0.0487, y: 0.0326, z: 0.158}
- {x: -0.012083233, y: 0.028070247, z: 0.025049694}
- {x: 0.040405963, y: -0.000000051561553, z: 0.000000045447194}
- {x: 0.032516792, y: -0.000000051137583, z: -0.000000012933195}
- {x: 0.030463902, y: 0.00000016269207, z: 0.0000000792839}
- {x: 0.0006324522, y: 0.026866155, z: 0.015001948}
- {x: 0.074204385, y: 0.005002201, z: -0.00023377323}
- {x: 0.043930072, y: 0.000000059567498, z: 0.00000018367103}
- {x: 0.02869547, y: -0.00000009398158, z: -0.00000012649753}
- {x: 0.022821384, y: -0.00000014365155, z: 0.00000007651614}
- {x: 0.0021773134, y: 0.007119544, z: 0.016318738}
- {x: 0.07095288, y: -0.00077883265, z: -0.000997186}
- {x: 0.043108486, y: -0.00000009950596, z: -0.0000000067041825}
- {x: 0.033266045, y: -0.00000001320567, z: -0.000000021670374}
- {x: 0.025892371, y: 0.00000009984198, z: -0.0000000020352908}
- {x: 0.0005134356, y: -0.0065451227, z: 0.016347693}
- {x: 0.06587581, y: -0.0017857892, z: -0.00069344096}
- {x: 0.04069671, y: -0.000000095347104, z: -0.000000022934731}
- {x: 0.028746964, y: 0.00000010089892, z: 0.000000045306827}
- {x: 0.022430236, y: 0.00000010846127, z: -0.000000017428562}
- {x: -0.002478151, y: -0.01898137, z: 0.015213584}
- {x: 0.0628784, y: -0.0028440945, z: -0.0003315112}
- {x: 0.030219711, y: -0.00000003418319, z: -0.00000009332872}
- {x: 0.018186597, y: -0.0000000050220166, z: -0.00000020934549}
- {x: 0.01801794, y: -0.0000000200012, z: 0.0000000659746}
- {x: -0.0060591106, y: 0.05628522, z: 0.060063843}
- {x: -0.04041555, y: -0.043017667, z: 0.019344581}
- {x: -0.03935372, y: -0.07567404, z: 0.047048334}
- {x: -0.038340144, y: -0.09098663, z: 0.08257892}
- {x: -0.031805996, y: -0.08721431, z: 0.12101539}
boneRotations:
- {x: -6.123234e-17, y: 1, z: 6.123234e-17, w: -0.00000004371139}
- {x: -0.6039541, y: -0.76872486, z: -0.13402164, w: -0.16229533}
- {x: -0.24606067, y: -0.8022466, z: 0.23809004, w: 0.4890477}
- {x: -0.020114152, y: -0.11887888, z: -0.055473074, w: 0.99115384}
- {x: -0.031207316, y: -0.18094091, z: -0.29972476, w: 0.93618995}
- {x: -1.3877788e-17, y: -1.3877788e-17, z: -5.551115e-17, w: 1}
- {x: -0.65611017, y: -0.4034549, z: -0.46588522, w: 0.43553954}
- {x: -0.0069288597, y: 0.039137676, z: -0.42612353, w: 0.9037915}
- {x: 0.045609348, y: 0.004786109, z: -0.10499106, w: 0.99341524}
- {x: -0.000951346, y: 0.022837702, z: -0.109021865, w: 0.99377656}
- {x: 6.938894e-18, y: 1.9428903e-16, z: -1.348151e-33, w: 1}
- {x: -0.546723, y: -0.46074906, z: -0.44252017, w: 0.54127645}
- {x: -0.1830789, y: 0.02632227, z: -0.35436827, w: 0.91663104}
- {x: 0.019083338, y: -0.012322452, z: -0.10600912, w: 0.99410564}
- {x: -0.007192388, y: 0.027495407, z: -0.07201239, w: 0.9969988}
- {x: 1.1639192e-17, y: -5.602331e-17, z: -0.040125635, w: 0.9991947}
- {x: -0.5023972, y: -0.44651043, z: -0.51322633, w: 0.5336893}
- {x: -0.22746634, y: -0.047153886, z: -0.39153343, w: 0.89035785}
- {x: 0.067035444, y: 0.10629764, z: -0.3667996, w: 0.92177284}
- {x: -0.12909631, y: 0.054110385, z: -0.31605175, w: 0.93835896}
- {x: 6.938894e-18, y: -9.62965e-35, z: -1.3877788e-17, w: 1}
- {x: -0.52943724, y: -0.312252, z: -0.6584001, w: 0.43440092}
- {x: -0.026747879, y: 0.04508703, z: -0.5356648, w: 0.84280187}
- {x: 0.01782634, y: 0.06521017, z: -0.37125823, w: 0.92606544}
- {x: -0.028132586, y: 0.043873146, z: -0.44147068, w: 0.8957608}
- {x: 0, y: 0, z: 1.9081958e-17, w: 1}
- {x: 0.20274544, y: 0.59426665, z: 0.2494411, w: 0.73723847}
- {x: 0.6235274, y: -0.66380864, z: -0.29373443, w: -0.29033053}
- {x: 0.6780625, y: -0.6592852, z: -0.26568344, w: -0.18704711}
- {x: 0.7367927, y: -0.6347571, z: -0.14393571, w: -0.18303718}
- {x: 0.7584072, y: -0.6393418, z: -0.12667806, w: -0.0036594148}
rightHand:
inputSource: 2
thumbFingerMovementType: 0
indexFingerMovementType: 2
middleFingerMovementType: 2
ringFingerMovementType: 2
pinkyFingerMovementType: 2
ignoreRootPoseData: 1
ignoreWristPoseData: 0
position: {x: -0.04400178, y: -0.009077018, z: -0.07569094}
rotation: {x: 0.28326723, y: -0.33523262, z: -0.10300676, w: 0.89261883}
bonePositions:
- {x: -0, y: 0, z: 0}
- {x: -0.0487, y: 0.0326, z: 0.158}
- {x: -0.012083233, y: 0.028070247, z: 0.025049694}
- {x: 0.040405963, y: -0.000000051561553, z: 0.000000045447194}
- {x: 0.032516792, y: -0.000000051137583, z: -0.000000012933195}
- {x: 0.030463902, y: 0.00000016269207, z: 0.0000000792839}
- {x: 0.0006324522, y: 0.026866155, z: 0.015001948}
- {x: 0.074204385, y: 0.005002201, z: -0.00023377323}
- {x: 0.043930072, y: 0.000000059567498, z: 0.00000018367103}
- {x: 0.02869547, y: -0.00000009398158, z: -0.00000012649753}
- {x: 0.022821384, y: -0.00000014365155, z: 0.00000007651614}
- {x: 0.0021773134, y: 0.007119544, z: 0.016318738}
- {x: 0.07095288, y: -0.00077883265, z: -0.000997186}
- {x: 0.043108486, y: -0.00000009950596, z: -0.0000000067041825}
- {x: 0.033266045, y: -0.00000001320567, z: -0.000000021670374}
- {x: 0.025892371, y: 0.00000009984198, z: -0.0000000020352908}
- {x: 0.0005134356, y: -0.0065451227, z: 0.016347693}
- {x: 0.06587581, y: -0.0017857892, z: -0.00069344096}
- {x: 0.04069671, y: -0.000000095347104, z: -0.000000022934731}
- {x: 0.028746964, y: 0.00000010089892, z: 0.000000045306827}
- {x: 0.022430236, y: 0.00000010846127, z: -0.000000017428562}
- {x: -0.002478151, y: -0.01898137, z: 0.015213584}
- {x: 0.0628784, y: -0.0028440945, z: -0.0003315112}
- {x: 0.030219711, y: -0.00000003418319, z: -0.00000009332872}
- {x: 0.018186597, y: -0.0000000050220166, z: -0.00000020934549}
- {x: 0.01801794, y: -0.0000000200012, z: 0.0000000659746}
- {x: -0.0060591106, y: 0.05628522, z: 0.060063843}
- {x: -0.04041555, y: -0.043017667, z: 0.019344581}
- {x: -0.03935372, y: -0.07567404, z: 0.047048334}
- {x: -0.038340144, y: -0.09098663, z: 0.08257892}
- {x: -0.031805996, y: -0.08721431, z: 0.12101539}
boneRotations:
- {x: -6.123234e-17, y: 1, z: 6.123234e-17, w: -0.00000004371139}
- {x: -0.6039541, y: -0.76872486, z: -0.13402164, w: -0.16229533}
- {x: -0.24606067, y: -0.8022466, z: 0.23809004, w: 0.4890477}
- {x: -0.02011415, y: -0.11887888, z: -0.05547307, w: 0.99115384}
- {x: -0.031207316, y: -0.18094091, z: -0.29972476, w: 0.93618995}
- {x: -1.3877788e-17, y: -1.3877788e-17, z: -5.551115e-17, w: 1}
- {x: -0.65611017, y: -0.4034549, z: -0.46588522, w: 0.43553954}
- {x: -0.0069288597, y: 0.039137676, z: -0.42612353, w: 0.9037915}
- {x: 0.045609348, y: 0.004786109, z: -0.10499106, w: 0.99341524}
- {x: -0.000951346, y: 0.022837702, z: -0.109021865, w: 0.99377656}
- {x: 6.938894e-18, y: 1.9428903e-16, z: -1.348151e-33, w: 1}
- {x: -0.546723, y: -0.46074906, z: -0.44252017, w: 0.54127645}
- {x: -0.1830789, y: 0.02632227, z: -0.35436827, w: 0.91663104}
- {x: 0.019083336, y: -0.012322452, z: -0.10600911, w: 0.99410564}
- {x: -0.007192388, y: 0.027495407, z: -0.07201239, w: 0.9969988}
- {x: 1.1639192e-17, y: -5.602331e-17, z: -0.040125635, w: 0.9991947}
- {x: -0.5023972, y: -0.44651043, z: -0.51322633, w: 0.5336893}
- {x: -0.22746634, y: -0.047153886, z: -0.39153343, w: 0.89035785}
- {x: 0.067035444, y: 0.10629764, z: -0.3667996, w: 0.92177284}
- {x: -0.12909631, y: 0.054110385, z: -0.31605175, w: 0.93835896}
- {x: 6.938894e-18, y: -9.62965e-35, z: -1.3877788e-17, w: 1}
- {x: -0.52943724, y: -0.312252, z: -0.6584001, w: 0.43440092}
- {x: -0.026747879, y: 0.04508703, z: -0.5356648, w: 0.84280187}
- {x: 0.01782634, y: 0.06521017, z: -0.37125823, w: 0.92606544}
- {x: -0.028132586, y: 0.043873146, z: -0.44147068, w: 0.8957608}
- {x: 0, y: 0, z: 1.9081958e-17, w: 1}
- {x: 0.20274544, y: 0.59426665, z: 0.2494411, w: 0.73723847}
- {x: 0.6235274, y: -0.66380864, z: -0.29373443, w: -0.29033053}
- {x: 0.6780625, y: -0.6592852, z: -0.26568344, w: -0.18704711}
- {x: 0.7367927, y: -0.6347571, z: -0.14393571, w: -0.18303718}
- {x: 0.7584072, y: -0.6393418, z: -0.12667806, w: -0.0036594148}
applyToSkeletonRoot: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 10177dbbd617d0c48a4f12393cff6b62
timeCreated: 1547839125
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant: