Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Sep 30, 2024
1 parent 0d1e6a8 commit 3e7610d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Assets/Scripts/GUI/BrushSettingsTray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ protected override void OnDestroy()
base.OnDestroy();
App.Switchboard.ToolChanged -= UpdateSliderToMatchCurrentSize;
}

private void ListenForConnectedDevices()
{
List<InputDevice> devices = new List<InputDevice>();
Expand All @@ -42,6 +43,7 @@ private void ListenForConnectedDevices()
DeviceConnected(device);
}
}

private void DeviceConnected(InputDevice device)
{
Debug.Log($"Device name: {device.name}");
Expand All @@ -53,6 +55,7 @@ private void DeviceConnected(InputDevice device)

UpdateSliderToMatchCurrentSize();
}

private void UpdateSliderToMatchCurrentSize()
{
m_BrushSizeSlider.SetInitialValueAndUpdate(
Expand Down

0 comments on commit 3e7610d

Please sign in to comment.