Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question No Devices, No Option to "Listen" for Input

Discussion in 'Input System' started by Dikaryon, May 8, 2022.

  1. Dikaryon

    Dikaryon

    Joined:
    Jan 27, 2016
    Posts:
    3
    Unity Version: 2021.3.2f1
    Input System Package Version: 1.3.0
    Operating System: Linux Mint 20.2 Cinnamon

    Problem:
    After changing Project Setting to use "Input System Package (New)", adding the Input System package, and creating an Input Actions asset, no devices are listed when trying to add bindings:
    upload_2022-5-8_12-38-32.png

    From looking at the documentation and others' videos of usage, it seems like at least my keyboard should be automatically detected. I have tried playing with Control Schemes to see if it would help, but have seen no changes. If I go into Project Settings > Input System Package and try to select from the "+" dropdown under Supported Devices, it also is blank.

    I feel like this could be a bug, but have marked this as Help Wanted because I'm not terribly familiar with the new input system and am wondering if I'm just missing some step to allow Unity to detect devices.

    Thank you!
     
  2. andrew_oc

    andrew_oc

    Unity Technologies

    Joined:
    Apr 16, 2021
    Posts:
    77
    Were you prompted to restart the editor when you switched to the Input System Package? That should have happened and is an important step. If you have restarted the editor, could you take a look in the Input System Debugger (Window -> Analysis -> Input Debugger) and let us know if any devices are visible in there.
     
  3. Dikaryon

    Dikaryon

    Joined:
    Jan 27, 2016
    Posts:
    3
    I did restart and have also restarted my computer since running into this issue. My keyboard and mouse do show up under Devices:
    upload_2022-5-12_19-57-36.png



    Additionally, I copied over some keyboard inputs from one of the examples included in the package and am able to use the input system in my code. So my keyboard/mouse work and Unity is detecting them. But without being able to see devices and listen for input when setting up an Input Actions object it's very clunky...I'm just guessing at inputs. It's not a huge deal for the keyboard (I guess "<Keyboard>/leftshift" correctly after trying "lshift") but it would be pretty tough to reliably do this for other input devices.

    Here's a side-by-side view where the devices show in debug but nothing comes up in the Binding dropdown:
    upload_2022-5-12_20-8-55.png
    Again, Left Shift was added by typing "<Keyboard>/leftshift" manually after pressing the "T" button
     
    Last edited: May 13, 2022
  4. andrew_oc

    andrew_oc

    Unity Technologies

    Joined:
    Apr 16, 2021
    Posts:
    77
    Having looked into this a bit more it does indeed seem like a bug. If you have time to submit a bug report for this (Help -> Report a bug) we'd appreciate it.
     
  5. omony

    omony

    Joined:
    Apr 2, 2020
    Posts:
    6
    Feels like I still have somehow related issues with Unity 2022.3.9f1 and input system 1.7.0. The listen button / lookup field are hidden, clicks do not always pass through. Failed to google anything related.

    upload_2023-10-3_0-7-2.png
     
    gPerry likes this.
  6. CreepyLamppost

    CreepyLamppost

    Joined:
    Jun 26, 2017
    Posts:
    20
    I am also experiencing this problem in Unity 2022.3.9
     
  7. lonelybear49

    lonelybear49

    Joined:
    Sep 24, 2021
    Posts:
    3
    Same problem in 2022.3.13f1
    Can't find keyboard and mouse, need typing key name,

    Since one day, I useing drawing tablet and open UnityEditor.

    I've tried switching input methods, not work. .png
     
  8. Zymes

    Zymes

    Joined:
    Feb 8, 2017
    Posts:
    118
    Bug still present on 2023.2.3f1. Can't detect my keyboard or mouse. Please fix.

    upload_2023-12-27_23-40-11.png
     
  9. Armageddon104

    Armageddon104

    Joined:
    Sep 14, 2014
    Posts:
    21
    Same issue in 2023.2.5f1:

    Input System 1.7.0:

    upload_2024-1-14_21-6-18.png

    upload_2024-1-14_21-6-50.png

    Oh but what's this? Input System 1.8.0-pre.2 has a global set of input actions under the settings now and the missing devices are available under composite bindings:

    upload_2024-1-14_21-11-29.png

    But under any other bindings Keyboard is missing!:

    upload_2024-1-14_21-13-24.png

    And editing my own action map is just the same as before (with an uglier ui because UI Toolkit):

    upload_2024-1-14_21-14-10.png

    How are we even supposed to interface with the new global action map in C#?

    This is absurd, absolute basics shouldn't be broken like this. Maybe using the string mapping will still work but I haven't tried it yet.