Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Resolved No input in Linux build

Discussion in 'Input System' started by GlaskowsRetroBrain, Dec 19, 2022.

  1. GlaskowsRetroBrain

    GlaskowsRetroBrain

    Joined:
    Jan 9, 2020
    Posts:
    8
    Hi,

    I have moved some of the systems in our app to use the new input system. Everything works as expected in the editor and Windows builds, but the Linux build seems not to receive any even from the new input system (the events from the old system are being processed without problems). Neither the UI or the normal mappings seem to be doing anything.
    When I connect the debugger I cannot see anything wrong, the events are just no firing. Have anyone experience this before? I saw some issues that were solved for later version of Unity, is ours too old to work well with the new input system?

    Thanks!

    Additional info
    Input system ver: v1.4.4
    Unity ver: 2020.3.33f1
    Linux: Ubuntu 20.04LTS
     
  2. GlaskowsRetroBrain

    GlaskowsRetroBrain

    Joined:
    Jan 9, 2020
    Posts:
    8
    I got a bit more information, in case someone can help me out.
    I got it to run under Linux, but only in my dev environment, under Gnome.
    The problem is trying to get the new input system work when it is run exclusively from the XServer, as our product doesn't ship with any desktop environment.

    Additionally, I created a small project to isolate this behavior, it is just a GO with a script to move it around while pressing the keyboard or gamepad and an UI button to test the UI event system.
    I tried this with different Unity versions. 2020.3.33f1, 2020.3.43f1 and 2021.3.16f1 with the same result.
    Well, the last two have and additional bug where the app crashes if I drag the mouse while I press its left button.
     
  3. mylastggeast

    mylastggeast

    Joined:
    Jun 14, 2021
    Posts:
    43
    I would love to know more about the state of Linux support too, since the Steamdeck touch screen is not supported too.
     
  4. GlaskowsRetroBrain

    GlaskowsRetroBrain

    Joined:
    Jan 9, 2020
    Posts:
    8
    Found the issue. In the Desktop free environment, the app is not in focus (even if it is the only app running!), so the Background Behavior needs to be set to "Ignore Focus" and then the devices will be connected.
     
  5. mylastggeast

    mylastggeast

    Joined:
    Jun 14, 2021
    Posts:
    43
    @GlaskowsRetroBrain
    Glad you were able to solve your issue!
    Do you know by chance if also multi-touch works with your setup?
     
  6. GlaskowsRetroBrain

    GlaskowsRetroBrain

    Joined:
    Jan 9, 2020
    Posts:
    8
    Sadly I don't. My setup doesn't include touch input.
     
    mylastggeast likes this.