Skip to content

Commit b7714b8

Browse files
committed
reset IsInputSourceDown in OnSourceLost
1 parent c8760a8 commit b7714b8

File tree

1 file changed

+1
-4
lines changed
  • Assets/HoloToolkit/Input/Scripts/Cursor

1 file changed

+1
-4
lines changed

Assets/HoloToolkit/Input/Scripts/Cursor/Cursor.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ public virtual void OnSourceLost(SourceStateEventData eventData)
395395
if (visibleHandsCount == 0)
396396
{
397397
IsHandVisible = false;
398+
IsInputSourceDown = false;
398399
}
399400
}
400401

@@ -421,10 +422,6 @@ public virtual CursorStateEnum CheckCursorState()
421422
{
422423
return CursorStateEnum.Select;
423424
}
424-
else if (IsInputSourceDown && visibleHandsCount == 0)
425-
{
426-
IsInputSourceDown = false;
427-
}
428425
else if (cursorState == CursorStateEnum.Select)
429426
{
430427
return CursorStateEnum.Release;

0 commit comments

Comments
 (0)