Skip to content

Commit 991d5a9

Browse files
committed
Renamed SourceClickedEventData to InputClickedEventData. Changed argument type in IInputClickHandler.OnInputClicked() from InputEventData to InputClickedEventData.
1 parent be7589d commit 991d5a9

File tree

20 files changed

+25
-25
lines changed

20 files changed

+25
-25
lines changed

Assets/HoloToolkit-Examples/ColorPicker/GazeableColorPicker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void OnFocusExit()
4646
gazing = false;
4747
}
4848

49-
public void OnInputClicked(InputEventData eventData)
49+
public void OnInputClicked(InputClickedEventData eventData)
5050
{
5151
UpdatePickedColor(OnPickedColor);
5252
}

Assets/HoloToolkit-Examples/GazeRuler/Scripts/MeasureManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void OnHoldCanceled(HoldEventData eventData)
9999
// Nothing to do
100100
}
101101

102-
public void OnInputClicked(InputEventData eventData)
102+
public void OnInputClicked(InputClickedEventData eventData)
103103
{
104104
OnSelect();
105105
}

Assets/HoloToolkit-Examples/SharingWithUNET/Scripts/PlayerController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void CmdFire()
139139
Destroy(nextBullet, 8.0f);
140140
}
141141

142-
public void OnInputClicked(InputEventData eventData)
142+
public void OnInputClicked(InputClickedEventData eventData)
143143
{
144144
if (isLocalPlayer)
145145
{

Assets/HoloToolkit-Examples/SpatialUnderstanding/SpatialUnderstanding-FeatureOverview/Scripts/AppState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public void OnSourceLost(SourceStateEventData eventData)
258258
}
259259
}
260260

261-
public void OnInputClicked(InputEventData eventData)
261+
public void OnInputClicked(InputClickedEventData eventData)
262262
{
263263
if ((SpatialUnderstanding.Instance.ScanState == SpatialUnderstanding.ScanStates.Scanning) &&
264264
!SpatialUnderstanding.Instance.ScanStatsReportStillWorking)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public virtual void OnInputDown(InputEventData eventData)
368368
/// Function for receiving OnInputClicked events from InputManager
369369
/// </summary>
370370
/// <param name="eventData"></param>
371-
public virtual void OnInputClicked(InputEventData eventData)
371+
public virtual void OnInputClicked(InputClickedEventData eventData)
372372
{
373373
// Open input socket for other cool stuff...
374374
}

Assets/HoloToolkit/Input/Scripts/InputEvents/IInputClickHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ namespace HoloToolkit.Unity.InputModule
1010
/// </summary>
1111
public interface IInputClickHandler : IEventSystemHandler
1212
{
13-
void OnInputClicked(InputEventData eventData);
13+
void OnInputClicked(InputClickedEventData eventData);
1414
}
1515
}

Assets/HoloToolkit/Input/Scripts/InputEvents/SourceClickedEventData.cs renamed to Assets/HoloToolkit/Input/Scripts/InputEvents/InputClickedEventData.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
namespace HoloToolkit.Unity.InputModule
88
{
99
/// <summary>
10-
/// Describes an input event that involves content manipulation.
10+
/// Describes an input event that involves a tap.
1111
/// </summary>
12-
public class SourceClickedEventData : InputEventData
12+
public class InputClickedEventData : InputEventData
1313
{
1414
/// <summary>
1515
/// Number of taps that triggered the event.
1616
/// </summary>
1717
public int TapCount { get; private set; }
1818

19-
public SourceClickedEventData(EventSystem eventSystem) : base(eventSystem)
19+
public InputClickedEventData(EventSystem eventSystem) : base(eventSystem)
2020
{
2121
}
2222

Assets/HoloToolkit/Input/Scripts/InputEvents/SourceClickedEventData.cs.meta renamed to Assets/HoloToolkit/Input/Scripts/InputEvents/InputClickedEventData.cs.meta

File renamed without changes.

Assets/HoloToolkit/Input/Scripts/InputManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class InputManager : Singleton<InputManager>
2929
private int disabledRefCount;
3030

3131
private InputEventData inputEventData;
32-
private SourceClickedEventData sourceClickedEventData;
32+
private InputClickedEventData sourceClickedEventData;
3333
private SourceStateEventData sourceStateEventData;
3434
private ManipulationEventData manipulationEventData;
3535
private HoldEventData holdEventData;
@@ -178,7 +178,7 @@ private void Start()
178178
private void InitializeEventDatas()
179179
{
180180
inputEventData = new InputEventData(EventSystem.current);
181-
sourceClickedEventData = new SourceClickedEventData(EventSystem.current);
181+
sourceClickedEventData = new InputClickedEventData(EventSystem.current);
182182
sourceStateEventData = new SourceStateEventData(EventSystem.current);
183183
manipulationEventData = new ManipulationEventData(EventSystem.current);
184184
navigationEventData = new NavigationEventData(EventSystem.current);
@@ -324,11 +324,11 @@ private void GazeManager_FocusedChanged(GameObject previousObject, GameObject ne
324324
private static readonly ExecuteEvents.EventFunction<IInputClickHandler> OnInputClickedEventHandler =
325325
delegate (IInputClickHandler handler, BaseEventData eventData)
326326
{
327-
SourceClickedEventData casted = ExecuteEvents.ValidateEventData<SourceClickedEventData>(eventData);
327+
InputClickedEventData casted = ExecuteEvents.ValidateEventData<InputClickedEventData>(eventData);
328328
handler.OnInputClicked(casted);
329329
};
330330

331-
public void RaiseSourceClicked(IInputSource source, uint sourceId, int tapCount)
331+
public void RaiseInputClicked(IInputSource source, uint sourceId, int tapCount)
332332
{
333333
// Create input event
334334
sourceClickedEventData.Initialize(source, sourceId, tapCount);

Assets/HoloToolkit/Input/Scripts/InputSources/EditorHandsInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ private void SendHandStateEvents(EditorHandData editorHandData, float time)
317317
if (time - editorHandData.FingerDownStartTime < MaxClickDuration)
318318
{
319319
// We currently only support single taps in editor
320-
inputManager.RaiseSourceClicked(this, editorHandData.HandId, 1);
320+
inputManager.RaiseInputClicked(this, editorHandData.HandId, 1);
321321
}
322322
}
323323
}

0 commit comments

Comments
 (0)