Skip to content

Commit 217bedd

Browse files
committed
Changed Debug.Assert message
1 parent bbe4f38 commit 217bedd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/XInput/XboxGamepadMacOS.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public enum Button
9797

9898
public XInputControllerOSXState WithButton(Button button)
9999
{
100-
Debug.Assert((int)button < 16, $"Expected button < 16, so we fit into the 16 bit wide bitmask");
100+
Debug.Assert((int)button < 16, $"A maximum of 16 buttons is supported for this layout.");
101101
buttons |= (ushort)(1U << (int)button);
102102
return this;
103103
}
@@ -175,7 +175,7 @@ public enum Button
175175

176176
public XInputControllerWirelessOSXState WithButton(Button button)
177177
{
178-
Debug.Assert((int)button < 32, $"Expected button < 32, so we fit into the 32 bit wide bitmask");
178+
Debug.Assert((int)button < 32, $"A maximum of 32 buttons is supported for this layout.");
179179
buttons |= 1U << (int)button;
180180
return this;
181181
}
@@ -267,7 +267,7 @@ public enum Button
267267

268268
public XInputControllerWirelessOSXStateV2 WithButton(Button button)
269269
{
270-
Debug.Assert((int)button < 32, $"Expected button < 32, so we fit into the 32 bit wide bitmask");
270+
Debug.Assert((int)button < 32, $"A maximum of 32 buttons is supported for this layout.");
271271
buttons |= 1U << (int)button;
272272
return this;
273273
}

0 commit comments

Comments
 (0)