File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Assets/JCSUnity/Scripts/Settings Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -265,8 +265,7 @@ public static string GetJoystickButtonName(JCS_JoystickButton label)
265265
266266
267267 // this should not happens.
268- JCS_Debug . LogWarning ( @"Try to get the name with unknown joystick
269- button is not allow..." ) ;
268+ JCS_Debug . LogWarning ( @"Try to get the name with unknown joystick button is not allow..." ) ;
270269 return "" ;
271270 }
272271
@@ -657,10 +656,7 @@ private void GetJoystickInfo()
657656 if ( ! JCS_Input . IsJoystickConnected ( ) )
658657 return ;
659658
660- //
661- for ( int index = 0 ;
662- index < mJoysticks . Length ;
663- ++ index )
659+ for ( int index = 0 ; index < mTotalGamePadInGame ; ++ index )
664660 {
665661 JoystickMap joystickMap = GetJoysitckMapByIndex ( index ) ;
666662
You can’t perform that action at this time.
0 commit comments