Search Unity

New Input System, Switching Devices

Discussion in 'Input System' started by psychic2ombie, Jun 9, 2019.

  1. psychic2ombie

    psychic2ombie

    Joined:
    Feb 8, 2015
    Posts:
    1
    So I am currently building a simple FPS game to learn the new input system, and I am having issues with switching devices. If I use control scheme that I set by default in the editor under PlayerInput my events trigger just fine. However if I say press a key on the keyboard after enabling the controller by default, I can see the control scheme change in the inspector, but my unity events stop triggering altogether. Once this happens even if I go to the original control scheme the input still does not work. Any help is greatly appreciated.

    Note:Getting input manually through the following code works flawlessly. All issues are with PlayerInput
    Code (CSharp):
    1. mc.Player.Move.performed += ctx => getMovement(ctx.ReadValue<Vector2>());
     
    Last edited: Jun 9, 2019