Skip to content

Conversation

@Rene-Damm
Copy link
Contributor

@Rene-Damm Rene-Damm commented Feb 5, 2020

Fixes #1023.

Regression was introduced in 1.0.0-preview.4. The changes to control scheme selection now caused the code to no longer find the right control scheme to use when joining from one device but having a scheme that required more than one device. This also surfaced another problem where the system made it possible to join a player, then fail to set it up correctly, and finally end up with a situation where the player has no InputUser, no devices, and activates all bindings from all control schemes -- and thus interferes with all other players.

Both issues are fixed in this PR. Tests are updated.

Also adds a new "Simple Multiplayer" sample with a bare-bones local multiplayer setup (unlike "Simple Demo", it is really simple...) with split-screen.

Uncovered a bug in ArrayHelpers.EraseSliceWithCapacity in the process. Also fixed in the PR.

@Rene-Damm Rene-Damm requested a review from jechter February 5, 2020 16:25
@Rene-Damm Rene-Damm merged commit d2d321e into develop Feb 6, 2020
@Rene-Damm Rene-Damm deleted the fix-playerinput-not-joining-with-keyboard branch February 6, 2020 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PlayerInputManager creates PlayerInputs with no input devices (preview.4)

3 participants