Skip to content

Commit 0420019

Browse files
committed
Organized
1 parent 0a19807 commit 0420019

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Assets/JCSUnity/Scripts/Settings/JCS_InputSettings.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)