File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Packages/com.unity.inputsystem/InputSystem/Plugins/XInput Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments