Reproduction steps:
1. Open the attached “MaxPlayerCountBug.zip“ project
2. Enter Play Mode and connect 3 Gamepads
3. Observe the Console
Expected result: A warning is thrown about reaching maximum player count of 2
Actual result: “Have reached maximum player count of 2” error is thrown
Reproducible with: 1.7.0 (2021.3.34f1), 1.8.0-pre.2 (2021.3.34f1, 2022.3.17f1, 2023.2.4f1, 2023.3.0b1)
Reproduced on: Windows 11 Pro
Not reproduced on: No other environment tested
Note:
Full error:
”Have reached maximum player count of 2
UnityEngine.InputSystem.LowLevel.NativeInputRuntime/<>c_DisplayClass7_0:<set_onUpdate>b_0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr)”