Skip to content

Commit 62e025a

Browse files
committed
Fixing failing documentation tests from CI
1 parent 9ddca67 commit 62e025a

File tree

1 file changed

+30
-27
lines changed

1 file changed

+30
-27
lines changed

Packages/com.unity.inputsystem/InputSystem/State/InputStateHistory.cs

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ public unsafe struct Record : IEquatable<Record>
724724
/// <summary>
725725
/// Identifies if the record is valid.
726726
/// </summary>
727-
/// <returns>True if the record is a valid entry. False if invalid.</returns>
727+
/// <value>True if the record is a valid entry. False if invalid.</value>
728728
/// <remarks>
729729
/// When the history is cleared with <see cref="Clear"/> the entries become invalid.
730730
/// </remarks>
@@ -733,7 +733,7 @@ public unsafe struct Record : IEquatable<Record>
733733
/// <summary>
734734
/// Identifies the owning container for the record.
735735
/// </summary>
736-
/// <returns>The owning <see cref="InputStateHistory"/> container for the record.</returns>
736+
/// <value>The owning <see cref="InputStateHistory"/> container for the record.</value>
737737
/// <remarks>
738738
/// Identifies the owning <see cref="InputStateHistory"/> container for the record.
739739
/// </remarks>
@@ -742,9 +742,9 @@ public unsafe struct Record : IEquatable<Record>
742742
/// <summary>
743743
/// The index of the input state record in the owning container.
744744
/// </summary>
745-
/// <returns>
745+
/// <value>
746746
/// The index of the input state record in the owning container.
747-
/// </returns>
747+
/// </value>
748748
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
749749
public int index
750750
{
@@ -758,10 +758,10 @@ public int index
758758
/// <summary>
759759
/// The time stamp of the input state record.
760760
/// </summary>
761-
/// <returns>
761+
/// <value>
762762
/// The time stamp of the input state record in the owning container.
763763
/// <see cref="IInputRuntime.currentTime"/>
764-
/// </returns>
764+
/// </value>
765765
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
766766
public double time
767767
{
@@ -775,9 +775,9 @@ public double time
775775
/// <summary>
776776
/// The control associated with the input state record.
777777
/// </summary>
778-
/// <returns>
778+
/// <value>
779779
/// The control associated with the input state record.
780-
/// </returns>
780+
/// </value>
781781
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
782782
public InputControl control
783783
{
@@ -794,9 +794,9 @@ public InputControl control
794794
/// <summary>
795795
/// The next input state record in the owning container.
796796
/// </summary>
797-
/// <returns>
797+
/// <value>
798798
/// The next input state record in the owning <see cref="InputStateHistory"/>container.
799-
/// </returns>
799+
/// </value>
800800
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
801801
public Record next
802802
{
@@ -814,9 +814,9 @@ public Record next
814814
/// <summary>
815815
/// The previous input state record in the owning container.
816816
/// </summary>
817-
/// <returns>
817+
/// <value>
818818
/// The previous input state record in the owning <see cref="InputStateHistory"/>container.
819-
/// </returns>
819+
/// </value>
820820
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
821821
public Record previous
822822
{
@@ -841,6 +841,7 @@ internal Record(InputStateHistory owner, int index, RecordHeader* header)
841841
/// <summary>
842842
/// Returns value from the control in the Record.
843843
/// </summary>
844+
/// <typeparam name="TValue"></typeparam>
844845
/// <returns>Returns value from the Record.</returns>
845846
/// <exception cref="InvalidOperationException">When the record is no longer value or the specified type is not present.</exception>
846847
public TValue ReadValue<TValue>()
@@ -869,6 +870,7 @@ public object ReadValueAsObject()
869870
/// </summary>
870871
/// <returns>The state memory for the record.</returns>
871872
/// <remarks>
873+
/// Read the state memory for the record.
872874
/// </remarks>
873875
public void* GetUnsafeMemoryPtr()
874876
{
@@ -890,7 +892,7 @@ public object ReadValueAsObject()
890892
/// <remarks>
891893
/// Additional date can be stored in a record in the extra memory section.
892894
/// </remarks>
893-
/// <see cref="InputStateHistory.extraMemoryPerRecord"/>
895+
/// <seealso cref="InputStateHistory.extraMemoryPerRecord"/>
894896
public void* GetUnsafeExtraMemoryPtr()
895897
{
896898
CheckValid();
@@ -1117,7 +1119,7 @@ public unsafe Record AddRecord(Record record)
11171119
/// Record a state change for a specific control.
11181120
/// </summary>
11191121
/// <param name="control">The control to record the state change for.</param>
1120-
/// <param name="eventPtr">The current event data to record.</param>
1122+
/// <param name="value">The value to record.</param>
11211123
/// <param name="time">Time stamp to apply (overriding the event timestamp)</param>
11221124
/// <returns>The newly added record.</returns>
11231125
/// <remarks>
@@ -1248,7 +1250,7 @@ public void Dispose()
12481250
/// <summary>
12491251
/// Identifies if the record is valid.
12501252
/// </summary>
1251-
/// <returns>True if the record is a valid entry. False if invalid.</returns>
1253+
/// <value>True if the record is a valid entry. False if invalid.</value>
12521254
/// <remarks>
12531255
/// When the history is cleared with <see cref="InputStateHistory.Clear"/> the entries become invalid.
12541256
/// </remarks>
@@ -1257,7 +1259,7 @@ public void Dispose()
12571259
/// <summary>
12581260
/// Identifies the owning container for the record.
12591261
/// </summary>
1260-
/// <returns>The owning <see cref="InputStateHistory"/> container for the record.</returns>
1262+
/// <value>The owning <see cref="InputStateHistory"/> container for the record.</value>
12611263
/// <remarks>
12621264
/// Identifies the owning <see cref="InputStateHistory"/> container for the record.
12631265
/// </remarks>
@@ -1266,9 +1268,9 @@ public void Dispose()
12661268
/// <summary>
12671269
/// The index of the input state record in the owning container.
12681270
/// </summary>
1269-
/// <returns>
1271+
/// <value>
12701272
/// The index of the input state record in the owning container.
1271-
/// </returns>
1273+
/// </value>
12721274
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
12731275
public int index
12741276
{
@@ -1282,10 +1284,10 @@ public int index
12821284
/// <summary>
12831285
/// The time stamp of the input state record.
12841286
/// </summary>
1285-
/// <returns>
1287+
/// <value>
12861288
/// The time stamp of the input state record in the owning container.
12871289
/// <see cref="IInputRuntime.currentTime"/>
1288-
/// </returns>
1290+
/// </value>
12891291
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
12901292
public double time
12911293
{
@@ -1299,9 +1301,9 @@ public double time
12991301
/// <summary>
13001302
/// The control associated with the input state record.
13011303
/// </summary>
1302-
/// <returns>
1304+
/// <value>
13031305
/// The control associated with the input state record.
1304-
/// </returns>
1306+
/// </value>
13051307
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
13061308
public InputControl<TValue> control
13071309
{
@@ -1318,9 +1320,9 @@ public InputControl<TValue> control
13181320
/// <summary>
13191321
/// The next input state record in the owning container.
13201322
/// </summary>
1321-
/// <returns>
1323+
/// <value>
13221324
/// The next input state record in the owning <see cref="InputStateHistory{TValue}"/>container.
1323-
/// </returns>
1325+
/// </value>
13241326
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
13251327
public Record next
13261328
{
@@ -1338,9 +1340,9 @@ public Record next
13381340
/// <summary>
13391341
/// The previous input state record in the owning container.
13401342
/// </summary>
1341-
/// <returns>
1343+
/// <value>
13421344
/// The previous input state record in the owning <see cref="InputStateHistory{TValue}"/>container.
1343-
/// </returns>
1345+
/// </value>
13441346
/// <exception cref="InvalidOperationException">When the record is no longer value.</exception>
13451347
public Record previous
13461348
{
@@ -1385,6 +1387,7 @@ public TValue ReadValue()
13851387
/// </summary>
13861388
/// <returns>The state memory for the record.</returns>
13871389
/// <remarks>
1390+
/// Read the state memory for the record.
13881391
/// </remarks>
13891392
public void* GetUnsafeMemoryPtr()
13901393
{
@@ -1406,7 +1409,7 @@ public TValue ReadValue()
14061409
/// <remarks>
14071410
/// Additional date can be stored in a record in the extra memory section.
14081411
/// </remarks>
1409-
/// <see cref="InputStateHistory.extraMemoryPerRecord"/>
1412+
/// <seealso cref="InputStateHistory.extraMemoryPerRecord"/>
14101413
public void* GetUnsafeExtraMemoryPtr()
14111414
{
14121415
CheckValid();

0 commit comments

Comments
 (0)