Skip to content

Commit 9973c17

Browse files
committed
Fixed gamepad hit twice at the first key issue
1 parent 24a0306 commit 9973c17

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Assets/JCSUnity/Scripts/Input/JCS_Input.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ public static float GetAxis(string name, bool ignorePause = false)
683683

684684
if (name == "")
685685
{
686-
JCS_Debug.LogError("InputManager' name cannot be empty string...");
686+
JCS_Debug.LogError("InputManager's name variable cannot be empty string...");
687687
return 0;
688688
}
689689

@@ -856,7 +856,6 @@ public static bool GetJoystickKeyDown(JCS_JoystickIndex joystickIndex, JCS_Joyst
856856
if (!mJoystickKeyPressed.ContainsKey(idString))
857857
{
858858
mJoystickKeyPressed.Add(idString, false);
859-
return true;
860859
}
861860
// Key contains!
862861
else

0 commit comments

Comments
 (0)