Skip to content

Commit 199d7dc

Browse files
committed
Fixed double click, no longer using JCS_InputType enum instead we use JCS_MouseButton enum.
1 parent 2e86ac2 commit 199d7dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assets/JCSUnity/Scripts/GUI/Dialogue/JCS_TalkObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class JCS_TalkObject
4747

4848
private void OnMouseOver()
4949
{
50-
if (JCS_Input.OnMouseDoubleClick(JCS_InputType.MOUSE_LEFT))
50+
if (JCS_Input.OnMouseDoubleClick(JCS_MouseButton.LEFT))
5151
{
5252
JCS_DialogueSystem jcsDs = JCS_UtilitiesManager.instance.GetDialogueSystem();
5353

Assets/JCSUnity/Scripts/Input/JCS_Input.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private static void ClearJoystickKeymapBuffer()
192192
/// </summary>
193193
/// <param name="type"> type by JCS_InputType (self-define) </param>
194194
/// <returns> true: if double click, false nothing happens </returns>
195-
public static bool OnMouseDoubleClick(JCS_InputType type, bool ignorePause = false)
195+
public static bool OnMouseDoubleClick(JCS_MouseButton type, bool ignorePause = false)
196196
{
197197
return OnMouseDoubleClick((int)type, ignorePause);
198198
}

0 commit comments

Comments
 (0)