Search Unity

Current Control Scheme null on player join

Discussion in 'Input System' started by JamhammerDev, Jan 31, 2020.

  1. JamhammerDev

    JamhammerDev

    Joined:
    Jul 11, 2015
    Posts:
    28
    Updated to the newest preview 1.4, and whenever we join a new player ( using the player input manager ) the players current control scheme is null when first joined. This is a new issue once we updated to the newest preview. Any ideas?
     
  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Is this happening with all control schemes and devices?

    There's a regression in 1.0.0-preview.4 with control schemes involving multiple devices which is fixed https://github.com/Unity-Technologies/InputSystem/pull/1037. So with, say, a keyboard+mouse scheme, the code would indeed mess up. With single-device schemes, it should work. Just wondering whether there's another regression here or whether it's the same bug.
     
    Eldoir likes this.
  3. JamhammerDev

    JamhammerDev

    Joined:
    Jul 11, 2015
    Posts:
    28
    Just did a test and you are correct! Removed mouse from our keyboard scheme and it worked nicely. Appreciate the quick fix :) Looking forward to 5!
     
  4. jourdanr

    jourdanr

    Joined:
    Sep 13, 2016
    Posts:
    4

    Is this still an issue? What's the best practice for getting around it?