Skip to content

Commit ce2ea7b

Browse files
committed
fix docs error
1 parent 9bf6802 commit ce2ea7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packages/com.unity.inputsystem/InputSystem/Controls/ButtonControl.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public ButtonControl()
107107
/// The default format for the control is <see cref="InputStateBlock.FormatBit"/>.
108108
/// The control's minimum value is set to 0 and the maximum value to 1.
109109
/// See <see cref="InputSettings.defaultButtonPressPoint"/> for the default press point.
110+
/// </remarks>
110111
/// <example>
111112
/// <code>
112113
/// using UnityEngine;
@@ -133,7 +134,6 @@ public ButtonControl()
133134
/// }
134135
/// </code>
135136
/// </example>
136-
/// </remarks>
137137
[MethodImpl(MethodImplOptions.AggressiveInlining)]
138138
public new bool IsValueConsideredPressed(float value)
139139
{
@@ -318,8 +318,8 @@ public bool wasPressedThisFrame
318318
/// {
319319
/// void Update()
320320
/// {
321-
/// bool buttonPressed = Gamepad.current.aButton.wasReleasedThisFrame;
322-
/// bool spaceKeyPressed = Keyboard.current.spaceKey.wasReleasedThisFrame;
321+
/// bool buttonReleased = Gamepad.current.aButton.wasReleasedThisFrame;
322+
/// bool spaceKeyReleased = Keyboard.current.spaceKey.wasReleasedThisFrame;
323323
/// }
324324
/// }
325325
/// </code>

0 commit comments

Comments
 (0)