Search Unity

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

Bug InputSystem doesn't recognise VirtualJoystick

Discussion in 'Input System' started by NXRT_MA, Sep 18, 2023.

  1. NXRT_MA

    NXRT_MA

    Joined:
    Jun 13, 2023
    Posts:
    4
    Hi, I have a problem with a custom controller using Unity InputSystem 1.3.0 in Unity 2021.3.2. When I look up the controller/joystick in windows settings game controller, everything works. It's recognised as Virtual joystick and I'm able to press all the buttons.

    When Unity is open I get the Log message "Joystick connected ("Virtual joystick")." followed by an error

    Control state block lies outside of state buffer
    UnityEngine.InputSystem.InputManager:OnNativeDeviceDiscovered (int,string)
    UnityEngineInternal.Input.NativeInputSystem:NotifyDeviceDiscovered (int,string)

    Already tried newer Unity versions with newer InputSystem versions, but the error only get's worse, as the controller/joystick is not even being recognised by Unity anymore.

    Used PoLabs for checking the inputs too and everything seems fine.

    Is there anything I can do to get this working? Anybody encountered a similar problem?

    br,
     
  2. NXRT_MA

    NXRT_MA

    Joined:
    Jun 13, 2023
    Posts:
    4
    in addition: InputDebugger works. I'm really confused atm...
    upload_2023-9-18_18-31-19.png