Skip to content

Commit 5b93549

Browse files
authored
added more detail for OnAdded and OnRemoved docs
1 parent cb81e84 commit 5b93549

File tree

1 file changed

+3
-3
lines changed
  • Packages/com.unity.inputsystem/InputSystem/Devices

1 file changed

+3
-3
lines changed

Packages/com.unity.inputsystem/InputSystem/Devices/Gamepad.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,10 +707,10 @@ public override void MakeCurrent()
707707

708708
/// <inheritdoc cref="InputDevice.OnAdded"/>
709709
/// <summary>
710-
/// Called when the gamepad is added to the system.
710+
/// Called when a gamepad is added to the system.
711711
/// </summary>
712712
/// <remarks>
713-
/// It will also add the gamepad to the list of <see cref="all"/> gamepads.
713+
/// Override this method if you want to do additional processing when a gamepad becomes connected. After this method is called, the gamepad is automatically added to the list of <see cref="all"/> gamepads.
714714
/// </remarks>
715715
protected override void OnAdded()
716716
{
@@ -722,7 +722,7 @@ protected override void OnAdded()
722722
/// Called when the gamepad is removed from the system.
723723
/// </summary>
724724
/// <remarks>
725-
/// It will also remove the gamepad from the list of <see cref="all"/> gamepads.
725+
/// Override this method if you want to do additional processing when a gamepad becomes disconnected. After this method is called, the gamepad is automatically removed from the list of <see cref="all"/> gamepads.
726726
/// </remarks>
727727
protected override void OnRemoved()
728728
{

0 commit comments

Comments
 (0)