Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Resolved Simultaneous input from gamepad and kbm not supported?

Discussion in 'Input System' started by Lork, Nov 20, 2021.

  1. Lork

    Lork

    Joined:
    Jul 12, 2013
    Posts:
    79
    It seems that with the new input system, regardless of any settings I've been able to find, any input from a gamepad will arbitrarily cancel any keyboard/mouse input that was previously active, and vice versa.

    This is terrible for reasons that should be obvious, but it's actually far worse than it initially seems. Simply plugging a controller in is enough to render a game unplayable on kb/m. Any errant 0.000000001f signal from the analog sticks will lock out kb/m inputs, interrupting the player's controls constantly.

    Is there some way to get around this obnoxious restriction? If not, this is a major regression from the old input system.
     
  2. Lork

    Lork

    Joined:
    Jul 12, 2013
    Posts:
    79
    I figured out how to get simultaneous inputs working gracefully. You need to edit a control scheme and add all of your supported devices to it, then make sure the Player Input component doesn't leave this scheme.
     
    SalvoSoftware likes this.
  3. SalvoSoftware

    SalvoSoftware

    Joined:
    Feb 4, 2013
    Posts:
    9
    I've tried but it doesn't work unfortunately! My mouse keeps moving a little even when it's still and this makes playing with gamepad almost impossible (because the movement of the sticks get reset and keys get "stuck") :(