Remove log spam.

This commit is contained in:
2025-02-24 12:36:31 +01:00
parent 25a5fd2124
commit 6c42da280a
6 changed files with 14 additions and 14 deletions

View File

@@ -209,7 +209,7 @@ namespace VIVE.OpenXR.Hand
/// </summary> /// </summary>
protected override void RegisterDeviceLayout() protected override void RegisterDeviceLayout()
{ {
sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(kDeviceLocalizedName); DEBUG(sb); // sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(kDeviceLocalizedName); DEBUG(sb);
InputSystem.RegisterLayout(typeof(HandInteractionDevice), InputSystem.RegisterLayout(typeof(HandInteractionDevice),
kLayoutName, kLayoutName,
matches: new InputDeviceMatcher() matches: new InputDeviceMatcher()
@@ -222,7 +222,7 @@ namespace VIVE.OpenXR.Hand
/// </summary> /// </summary>
protected override void UnregisterDeviceLayout() protected override void UnregisterDeviceLayout()
{ {
sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb); // sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb);
InputSystem.RemoveLayout(kLayoutName); InputSystem.RemoveLayout(kLayoutName);
} }

View File

@@ -226,7 +226,7 @@ namespace VIVE.OpenXR.Hand
#region Supported component paths #region Supported component paths
/// <summary> /// <summary>
/// Constant for a pose interaction binding '.../input/aim/pose' OpenXR Input Binding.<br></br> /// Constant for a pose interaction binding '.../input/aim/pose' OpenXR Input Binding.<br></br>
/// Typically used for aiming at objects out of arm¡¦s reach. When using a hand interaction profile, it is typically paired with <see cref="pointerActivateValue"/> to optimize aiming ray stability while performing the gesture.<br></br> /// Typically used for aiming at objects out of arm<EFBFBD><EFBFBD>s reach. When using a hand interaction profile, it is typically paired with <see cref="pointerActivateValue"/> to optimize aiming ray stability while performing the gesture.<br></br>
/// When using a controller interaction profile, the "aim" pose is typically paired with a trigger or a button for aim and fire operations. /// When using a controller interaction profile, the "aim" pose is typically paired with a trigger or a button for aim and fire operations.
/// </summary> /// </summary>
public const string aim = "/input/aim/pose"; public const string aim = "/input/aim/pose";
@@ -245,7 +245,7 @@ namespace VIVE.OpenXR.Hand
/// <summary> /// <summary>
/// Constant for a pose interaction binding '.../input/grip/pose' OpenXR Input Binding.<br></br> /// Constant for a pose interaction binding '.../input/grip/pose' OpenXR Input Binding.<br></br>
/// Typically used for holding a large object in the user¡¦s hand. When using a hand interaction profile, it is typically paired with <see cref="graspValue"/> for the user to directly manipulate an object held in a hand.<br></br> /// Typically used for holding a large object in the user<EFBFBD><EFBFBD>s hand. When using a hand interaction profile, it is typically paired with <see cref="graspValue"/> for the user to directly manipulate an object held in a hand.<br></br>
/// When using a controller interaction profile, the "grip" pose is typically paired with a "squeeze" button or trigger that gives the user the sense of tightly holding an object. /// When using a controller interaction profile, the "grip" pose is typically paired with a "squeeze" button or trigger that gives the user the sense of tightly holding an object.
/// </summary> /// </summary>
public const string grip = "/input/grip/pose"; public const string grip = "/input/grip/pose";
@@ -319,7 +319,7 @@ namespace VIVE.OpenXR.Hand
/// </summary> /// </summary>
protected override void RegisterDeviceLayout() protected override void RegisterDeviceLayout()
{ {
sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(kDeviceLocalizedName); DEBUG(sb); // sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(kDeviceLocalizedName); DEBUG(sb);
InputSystem.RegisterLayout(typeof(HandInteractionExtDevice), InputSystem.RegisterLayout(typeof(HandInteractionExtDevice),
kLayoutName, kLayoutName,
matches: new InputDeviceMatcher() matches: new InputDeviceMatcher()
@@ -332,7 +332,7 @@ namespace VIVE.OpenXR.Hand
/// </summary> /// </summary>
protected override void UnregisterDeviceLayout() protected override void UnregisterDeviceLayout()
{ {
sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb); // sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb);
InputSystem.RemoveLayout(kLayoutName); InputSystem.RemoveLayout(kLayoutName);
} }

View File

@@ -208,7 +208,7 @@ namespace VIVE.OpenXR.Tracker
/// </summary> /// </summary>
protected override void RegisterDeviceLayout() protected override void RegisterDeviceLayout()
{ {
sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(kDeviceLocalizedName); DEBUG(sb); // sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(kDeviceLocalizedName); DEBUG(sb);
InputSystem.RegisterLayout(typeof(WristTrackerDevice), InputSystem.RegisterLayout(typeof(WristTrackerDevice),
kLayoutName, kLayoutName,
matches: new InputDeviceMatcher() matches: new InputDeviceMatcher()
@@ -221,7 +221,7 @@ namespace VIVE.OpenXR.Tracker
/// </summary> /// </summary>
protected override void UnregisterDeviceLayout() protected override void UnregisterDeviceLayout()
{ {
sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb); // sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb);
InputSystem.RemoveLayout(kLayoutName); InputSystem.RemoveLayout(kLayoutName);
} }

View File

@@ -581,7 +581,7 @@ namespace VIVE.OpenXR.Tracker
/// </summary> /// </summary>
protected override void RegisterDeviceLayout() protected override void RegisterDeviceLayout()
{ {
sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(@kProducts); DEBUG(sb); // sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(@kProducts); DEBUG(sb);
InputSystem.RegisterLayout(typeof(XrTrackerDevice), InputSystem.RegisterLayout(typeof(XrTrackerDevice),
kLayoutName, kLayoutName,
matches: new InputDeviceMatcher() matches: new InputDeviceMatcher()
@@ -594,7 +594,7 @@ namespace VIVE.OpenXR.Tracker
/// </summary> /// </summary>
protected override void UnregisterDeviceLayout() protected override void UnregisterDeviceLayout()
{ {
sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb); // sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb);
InputSystem.RemoveLayout(kLayoutName); InputSystem.RemoveLayout(kLayoutName);
} }

View File

@@ -282,7 +282,7 @@ namespace VIVE.OpenXR
/// </summary> /// </summary>
protected override void RegisterDeviceLayout() protected override void RegisterDeviceLayout()
{ {
Debug.LogFormat("VIVECosmosProfile RegisterDeviceLayout() {0} , product: {1}", kLayoutName, kDeviceLocalizedName); // Debug.LogFormat("VIVECosmosProfile RegisterDeviceLayout() {0} , product: {1}", kLayoutName, kDeviceLocalizedName);
InputSystem.RegisterLayout(typeof(ViveCosmosController), InputSystem.RegisterLayout(typeof(ViveCosmosController),
kLayoutName, kLayoutName,
matches: new InputDeviceMatcher() matches: new InputDeviceMatcher()
@@ -295,7 +295,7 @@ namespace VIVE.OpenXR
/// </summary> /// </summary>
protected override void UnregisterDeviceLayout() protected override void UnregisterDeviceLayout()
{ {
Debug.LogFormat("VIVECosmosProfile UnregisterDeviceLayout() {0}", kLayoutName); // Debug.LogFormat("VIVECosmosProfile UnregisterDeviceLayout() {0}", kLayoutName);
InputSystem.RemoveLayout(kLayoutName); InputSystem.RemoveLayout(kLayoutName);
} }

View File

@@ -500,7 +500,7 @@ namespace VIVE.OpenXR
/// </summary> /// </summary>
protected override void RegisterDeviceLayout() protected override void RegisterDeviceLayout()
{ {
sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(kDeviceLocalizedName); DEBUG(sb); // sb.Clear().Append("RegisterDeviceLayout() ").Append(kLayoutName).Append(", product: ").Append(kDeviceLocalizedName); DEBUG(sb);
InputSystem.RegisterLayout(typeof(VIVEFocus3Controller), InputSystem.RegisterLayout(typeof(VIVEFocus3Controller),
kLayoutName, kLayoutName,
matches: new InputDeviceMatcher() matches: new InputDeviceMatcher()
@@ -513,7 +513,7 @@ namespace VIVE.OpenXR
/// </summary> /// </summary>
protected override void UnregisterDeviceLayout() protected override void UnregisterDeviceLayout()
{ {
sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb); // sb.Clear().Append("UnregisterDeviceLayout() ").Append(kLayoutName); DEBUG(sb);
InputSystem.RemoveLayout(kLayoutName); InputSystem.RemoveLayout(kLayoutName);
} }