Skip to content

Commit b31c88a

Browse files
More XML Documentation and Cleanup
1 parent add5694 commit b31c88a

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

Properties/GlobalSuppressions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Scope = "type", Target = "~T:bHapticsLib.bHapticsConnection")]
44
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Scope = "type", Target = "~T:bHapticsLib.bHapticsException")]
55
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Scope = "type", Target = "~T:bHapticsLib.bHapticsManager")]
6-
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Scope = "type", Target = "~T:bHapticsLib.bHapticsStatus")]
6+
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Scope = "type", Target = "~T:bHapticsLib.bHapticsStatus")]

bHapticsLib/DotPoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public DotPoint(int index = 0, int intensity = 50)
1313
Intensity = intensity;
1414
}
1515

16-
/// <value>Index of Haptic Node</value>
16+
/// <value>Index of Haptic Motor</value>
1717
public int Index
1818
{
1919
get => node["index"].AsInt;

bHapticsLib/HapticPattern.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
/// <summary>Haptic Pattern Utility</summary>
44
public class HapticPattern
55
{
6+
/// <value>Pattern key id</value>
67
public string Key { get; private set; }
78

9+
810
public static HapticPattern LoadFromFile(string key, string tactFilePath)
911
{
1012
bHapticsManager.RegisterPatternFromFile(key, tactFilePath);

bHapticsLib/bHapticsException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ namespace bHapticsLib
55
/// <summary>Exception Thrown from bHapticsLib</summary>
66
public class bHapticsException : Exception
77
{
8-
public bHapticsException() { }
9-
public bHapticsException(string message) : base(message) { }
10-
public bHapticsException(string message, Exception exception) : base(message, exception) { }
8+
internal bHapticsException() { }
9+
internal bHapticsException(string message) : base(message) { }
10+
internal bHapticsException(string message, Exception exception) : base(message, exception) { }
1111
}
1212
}

bHapticsLib/bHapticsManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,12 @@ public static bool IsPlayingAny()
100100
#endregion
101101

102102
#region StopPlaying
103+
/// <summary>Stops the specified pattern</summary>
104+
/// <param name="key">The key id of the pattern</param>
103105
public static void StopPlaying(string key)
104106
=> Connection.StopPlaying(key);
107+
108+
/// <summary>Stops the currently playing patterns</summary>
105109
public static void StopPlayingAll()
106110
=> Connection.StopPlayingAll();
107111
#endregion

0 commit comments

Comments
 (0)