Skip to content

Commit 981b846

Browse files
author
Robert El-Soudani
committed
Fix PointerEventData build break after InputSourceId rename
1 parent 16d44e7 commit 981b846

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Assets/HoloToolkit/Input/Scripts/Focus/FocusManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ private void Clear(PointerEventData pointerEventData)
924924
uiRaycastPointerInputData.selectedObject = null;
925925
uiRaycastPointerInputData.useDragThreshold = false;
926926
uiRaycastPointerInputData.InputSource = null;
927-
uiRaycastPointerInputData.InputSourceId = 0;
927+
uiRaycastPointerInputData.SourceId = 0;
928928
}
929929

930930
#endregion

Assets/HoloToolkit/Input/Scripts/InputManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public void RaiseSourceUp(IInputSource source, uint sourceId, InteractionPressKi
388388
{
389389
PointerInputEventData pointerInputEventData = FocusManager.Instance.BorrowPointerEventData();
390390
pointerInputEventData.InputSource = source;
391-
pointerInputEventData.InputSourceId = sourceId;
391+
pointerInputEventData.SourceId = sourceId;
392392

393393
HandleEvent(pointerInputEventData, ExecuteEvents.pointerUpHandler);
394394
HandleEvent(pointerInputEventData, ExecuteEvents.pointerClickHandler);
@@ -415,7 +415,7 @@ public void RaiseSourceDown(IInputSource source, uint sourceId, InteractionPress
415415
{
416416
PointerInputEventData pointerInputEventData = FocusManager.Instance.BorrowPointerEventData();
417417
pointerInputEventData.InputSource = source;
418-
pointerInputEventData.InputSourceId = sourceId;
418+
pointerInputEventData.SourceId = sourceId;
419419

420420
pointerInputEventData.eligibleForClick = true;
421421
pointerInputEventData.delta = Vector2.zero;

0 commit comments

Comments
 (0)