@@ -15,8 +15,8 @@ internal static class DataStore
1515 new ( Environment . ProcessorCount , ( int ) OpenVR . k_unMaxTrackedDeviceCount ) ;
1616 public static readonly ConcurrentDictionary < InputSource , ulong > sourceToHandle = new ( ) ;
1717 public static readonly ConcurrentDictionary < InputSource , ConcurrentDictionary < string , Vec3 > > analogInputActionData = new ( ) ;
18- public static readonly ConcurrentDictionary < InputSource , ConcurrentDictionary < string , JsonPose > > poseInputActionData = new ( ) ;
19- public static readonly ConcurrentDictionary < string , JsonSkeletonSummary > skeletonSummaryInputActionData = new ( ) ;
18+ public static readonly ConcurrentDictionary < InputSource , ConcurrentDictionary < string , OutputDataPose > > poseInputActionData = new ( ) ;
19+ public static readonly ConcurrentDictionary < string , OutputDataSkeletonSummary > skeletonSummaryInputActionData = new ( ) ;
2020 public static readonly ConcurrentDictionary < InputSource , int > sourceToIndex = new ( ) ;
2121 public static readonly ConcurrentDictionary < int , InputSource > indexToSource = new ( ) ;
2222
@@ -110,22 +110,22 @@ public static void UpdateOrAddPoseInputActionData(InputPoseActionData_t data, In
110110 {
111111 var source = handleToSource [ info . sourceHandle ] ;
112112 if ( ! poseInputActionData . ContainsKey ( source ) )
113- poseInputActionData [ source ] = new ConcurrentDictionary < string , JsonPose > ( ) ;
114- poseInputActionData [ source ] [ info . pathEnd ] = new JsonPose ( data . pose ) ;
113+ poseInputActionData [ source ] = new ConcurrentDictionary < string , OutputDataPose > ( ) ;
114+ poseInputActionData [ source ] [ info . pathEnd ] = new OutputDataPose ( data . pose ) ;
115115 }
116116
117117 public static void UpdateOrAddSkeletonSummaryInputData ( VRSkeletalSummaryData_t data , InputActionInfo info )
118118 {
119- skeletonSummaryInputActionData [ info . pathEnd ] = new JsonSkeletonSummary ( data ) ;
119+ skeletonSummaryInputActionData [ info . pathEnd ] = new OutputDataSkeletonSummary ( data ) ;
120120 }
121121
122122 public static void UpdateOrAddPoseData ( TrackedDevicePose_t pose , int deviceIndex )
123123 {
124124 if ( indexToSource . TryGetValue ( deviceIndex , out var source ) )
125125 {
126126 if ( ! poseInputActionData . ContainsKey ( source ) )
127- poseInputActionData [ source ] = new ConcurrentDictionary < string , JsonPose > ( ) ;
128- poseInputActionData [ source ] [ "Pose" ] = new JsonPose ( pose ) ;
127+ poseInputActionData [ source ] = new ConcurrentDictionary < string , OutputDataPose > ( ) ;
128+ poseInputActionData [ source ] [ "Pose" ] = new OutputDataPose ( pose ) ;
129129 }
130130 }
131131
0 commit comments