Search Issue Tracker

Fixed in 1.1.0-preview.4

Votes

20

Found in [Package]

1.0-preview

Issue ID

1189859

Regression

No

[InputSystem] Error when vJoy is installed

Package: Input System

-

Platform: Windows

Repro:

1. Install vJoy (http://vjoystick.sourceforge.net/site/)
2. Launch Unity
3. Observe error in console.

```
Could not create a device for 'Shaul Eizikovich vJoy - Virtual Joystick (HID)' (exception: System.NotImplementedException: The method or operation is not implemented.
at UnityEngine.InputSystem.Utilities.PrimitiveValue.FromString (System.String value) [0x0013a] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Utilities\PrimitiveValue.cs:407
at UnityEngine.InputSystem.Utilities.NamedValue.ParseParameter (System.String parameterString, System.Int32& index) [0x0015d] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Utilities\NamedValue.cs:157
at UnityEngine.InputSystem.Utilities.NamedValue.ParseMultiple (System.String parameterString) [0x00050] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Utilities\NamedValue.cs:98
at UnityEngine.InputSystem.Layouts.InputControlLayout+Builder+ControlBuilder.WithParameters (System.String parameters) [0x00014] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Controls\InputControlLayout.cs:666
at UnityEngine.InputSystem.HID.HID+HIDLayoutBuilder.Build () [0x001ac] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Plugins\HID\HID.cs:375
at UnityEngine.InputSystem.HID.HID+<>c__DisplayClass12_0.<OnFindLayoutForDevice>b__0 () [0x00000] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Plugins\HID\HID.cs:185
at UnityEngine.InputSystem.Layouts.InputControlLayout+Collection.TryLoadLayoutInternal (UnityEngine.InputSystem.Utilities.InternedString name) [0x00056] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Controls\InputControlLayout.cs:1811
at UnityEngine.InputSystem.Layouts.InputControlLayout+Collection.TryLoadLayout (UnityEngine.InputSystem.Utilities.InternedString name, System.Collections.Generic.Dictionary`2[TKey,TValue] table) [0x00001] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Controls\InputControlLayout.cs:1822
at UnityEngine.InputSystem.Layouts.InputControlLayout+Cache.FindOrLoadLayout (System.String name) [0x00044] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Controls\InputControlLayout.cs:2023
at UnityEngine.InputSystem.Layouts.InputDeviceBuilder.FindOrLoadLayout (System.String name) [0x00014] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Devices\InputDeviceBuilder.cs:682
at UnityEngine.InputSystem.Layouts.InputDeviceBuilder.InstantiateLayout (UnityEngine.InputSystem.Utilities.InternedString layout, UnityEngine.InputSystem.Utilities.InternedString variants, UnityEngine.InputSystem.Utilities.InternedString name, UnityEngine.InputSystem.InputControl parent) [0x00001] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Devices\InputDeviceBuilder.cs:101
at UnityEngine.InputSystem.Layouts.InputDeviceBuilder.Setup (UnityEngine.InputSystem.Utilities.InternedString layout, UnityEngine.InputSystem.Utilities.InternedString variants, UnityEngine.InputSystem.Layouts.InputDeviceDescription deviceDescription) [0x0000c] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Devices\InputDeviceBuilder.cs:53
at UnityEngine.InputSystem.InputDevice.Build[TDevice] (System.String layoutName, System.String layoutVariants, UnityEngine.InputSystem.Layouts.InputDeviceDescription deviceDescription) [0x0004a] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\Devices\InputDevice.cs:653
at UnityEngine.InputSystem.InputManager.AddDevice (UnityEngine.InputSystem.Utilities.InternedString layout, System.Int32 deviceId, System.String deviceName, UnityEngine.InputSystem.Layouts.InputDeviceDescription deviceDescription, UnityEngine.InputSystem.InputDevice+DeviceFlags deviceFlags, UnityEngine.InputSystem.Utilities.InternedString variants) [0x00001] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\InputManager.cs:971
at UnityEngine.InputSystem.InputManager.AddDevice (UnityEngine.InputSystem.Layouts.InputDeviceDescription description, System.Boolean throwIfNoLayoutFound, System.String deviceName, System.Int32 deviceId, UnityEngine.InputSystem.InputDevice+DeviceFlags deviceFlags) [0x00072] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\InputManager.cs:1100
at UnityEngine.InputSystem.InputManager.OnNativeDeviceDiscovered (System.Int32 deviceId, System.String deviceDescriptor) [0x000c4] in F:\Unity\Pyromance\Library\PackageCache\com.unity.inputsystem@1.0.0-preview\InputSystem\InputManager.cs:1991 )
UnityEngine.InputSystem.InputManager:OnNativeDeviceDiscovered(Int32, String)
UnityEngineInternal.Input.NativeInputSystem:NotifyDeviceDiscovered(Int32, String)
```

Comments (14)

  1. MUGIK

    May 07, 2020 14:38

    I found a fix and made a pull request.
    https://github.com/Unity-Technologies/InputSystem/pull/1140

    But I'm not sure how long it would take to release, so you can easily change your code according to this pull request (3 lines of code) and you will be able to use the vJoy controller.

    Hope this helps :)

    P.S. I used vJoy to emulate gamepad using my smartphone and PC Remote cuz I don't have access to normal controllers right now. It's pretty handy for fast prototyping or testing

  2. MUGIK

    May 07, 2020 13:34

    +

  3. Ghosthowl

    Dec 02, 2019 04:40

    Also having this issue.

  4. uzairali001

    Oct 20, 2019 09:24

    I'm also having this issue, did you resolve it?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.