Search Unity

Steamworks with the new input system

Discussion in 'Input System' started by Arcalise, Oct 2, 2020.

  1. Arcalise

    Arcalise

    Joined:
    Sep 27, 2019
    Posts:
    20
    Hey there!

    I'm using steamworks.NET with the new input system and having a little difficulty.

    The mouse and keyboard work just fine.

    Not sure if this intended or not. But upon initializing steamworks. My xbox one controller is no longer recognized within unity. No inputs will reach it until i close steam. I can get the game working by building it, opening the overlay and going to controller configurations then selecting to apply the generic gamepad. It will then work as intended. But within the editor nothing i do seems to work.

    Any potential work arounds would be amazing. I really would just like to turn of steaminput all together as i believe unitys controller solutions work just fine!
     
  2. Hysparions

    Hysparions

    Joined:
    Jan 7, 2019
    Posts:
    29
    Same problem here, it seems that steam input rebinds the controller, especially when connected by Bluetooth. This create a complete mess and unity Don't recognize input properly
     
  3. timke

    timke

    Joined:
    Nov 30, 2017
    Posts:
    407
    Hey,

    I've been investigation this issue and have an answer: this behavior is caused by using the default input configuration, which only supports Keyboard/Mouse.

    Here's the response from Valve:
    For more detailed information, please see this Steamworks discussion thread.
    There's also a (resolved) Unity bug covering this issue.
     
    Last edited: Dec 2, 2020
    GrayedFox and Hysparions like this.
  4. Hysparions

    Hysparions

    Joined:
    Jan 7, 2019
    Posts:
    29
    Hey,
    Thanks tim for the answer. This didn't solve the issue, (I tried steam appID 1456390). In fact the dualshock doesn't work even if steam and steam works ared disabled whenusing bluetooth.
     
  5. timke

    timke

    Joined:
    Nov 30, 2017
    Posts:
    407
    I'm sorry to hear that.

    I'd recommend following up either on the Steamworks Github or maybe the Valve development forums. Basically, from my investigation, Steam literally hijacks XInput, and there's really nothing Unity can do about it.
     
  6. Hysparions

    Hysparions

    Joined:
    Jan 7, 2019
    Posts:
    29
    Yes that's that, I have to use Rewired instead...
     
    Vaupell likes this.
  7. ODINKONG

    ODINKONG

    Joined:
    Nov 4, 2014
    Posts:
    112
    I managed to get this working.
    If you go to steam works and click your app Id then go to application > steam input and change the settings like this.
    upload_2022-5-8_12-39-35.png
    Then the PS4 controller uses unity's input system.
     
  8. Sebastien_Morris

    Sebastien_Morris

    Joined:
    Oct 22, 2021
    Posts:
    1
    How do you access that page
     
  9. jukibom

    jukibom

    Joined:
    Aug 31, 2015
    Posts:
    54
  10. kayusoft

    kayusoft

    Joined:
    Mar 22, 2014
    Posts:
    15
    Hi ODINKONG.
    These are already default settings on my steamworks account. I don't understand which one i should change.
    I have tried a few different settings and published. But it is still not working correctly for me.
    When i try to use mouse, controller scheme changes to Gamepad instantly.
    Is there any solution?
     
  11. SharpAccent

    SharpAccent

    Joined:
    Jul 19, 2018
    Posts:
    39
    So what if we are getting this error in the editor?