@@ -35,7 +35,7 @@ class MainController
3535 // Other
3636 private string _currentApplicationId = "" ;
3737 private ulong _inputSourceHandleLeft = 0 , _inputSourceHandleRight = 0 ;
38- private ulong [ ] _inputSourceHandles = new ulong [ 10 ] ;
38+ private ulong [ ] _inputSourceHandles = new ulong [ 14 ] ;
3939 private ulong _notificationOverlayHandle = 0 ;
4040 private string [ ] _actionKeys = new string [ 0 ] ;
4141
@@ -222,16 +222,21 @@ private void UpdateInputSourceHandles()
222222 {
223223 _inputSourceHandleLeft = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . LeftHand ) ;
224224 _inputSourceHandleRight = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . RightHand ) ;
225- _inputSourceHandles [ 0 ] = _inputSourceHandleLeft ;
226- _inputSourceHandles [ 1 ] = _inputSourceHandleRight ;
227- _inputSourceHandles [ 2 ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . Chest ) ;
228- _inputSourceHandles [ 3 ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . LeftElbow ) ;
229- _inputSourceHandles [ 4 ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . LeftKnee ) ;
230- _inputSourceHandles [ 5 ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . LeftFoot ) ;
231- _inputSourceHandles [ 6 ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . RightElbow ) ;
232- _inputSourceHandles [ 7 ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . RightKnee ) ;
233- _inputSourceHandles [ 8 ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . RightFoot ) ;
234- _inputSourceHandles [ 9 ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . Waist ) ;
225+ ulong index = 0L ;
226+ _inputSourceHandles [ index ++ ] = _inputSourceHandleLeft ;
227+ _inputSourceHandles [ index ++ ] = _inputSourceHandleRight ;
228+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . Head ) ;
229+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . Chest ) ;
230+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . LeftShoulder ) ;
231+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . LeftElbow ) ;
232+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . LeftKnee ) ;
233+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . LeftFoot ) ;
234+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . RightShoulder ) ;
235+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . RightElbow ) ;
236+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . RightKnee ) ;
237+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . RightFoot ) ;
238+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . Waist ) ;
239+ _inputSourceHandles [ index ++ ] = _ovr . GetInputSourceHandle ( EasyOpenVRSingleton . InputSource . Camera ) ;
235240 }
236241
237242 // New app is running, distribute new app ID
0 commit comments