Search Issue Tracker

Fixed in 1.1.0-preview.4

Votes

3

Found in [Package]

1.0.0

Issue ID

1258003

Regression

No

HID exceptions are thrown when launching a project while analog keyboard is connected to the machine

Package: Input System

-

Reproduction steps:
1. Open any Unity project with Input System package while an analog keyboard is connected to the machine
2. Inspect the console

Expected result: No errors are thrown
Actual result: "Could not create a device" HID exceptions are thrown

Reproduces on Wooting One Analog keyboard

Notes:
1. New Input System does not support keyboards over HID, and the keyboard support we have at this point is entirely 1/0.
2. The keyboard should work normally, but the HID for the keyboard will not be functional

Comments (2)

  1. Lurpelo

    Mar 28, 2021 11:20

    This bug/error/whatever has evolved into Input System 1.0.2 in Unity 2021.1.01f.
    Ain't that great.

    Layout 'HID-BEEF-FEED' matches existing device '{"vendorId":48879. "productId":65261, "usa...(HID) but failed to instantiate: System Exception: State format 'SBIT' is not supported as floating-point format.

    Input Debug logs succesfully values from Keyboard, Mouse and XInputControllerWindows (Xbox gamepad) and everything works and moves in gameplay, but the project stops at building the game due to this error.

  2. 12r45

    Aug 24, 2020 06:46

    heres the full call stack,

    also this is with a Wooting WootingTwo keyboard

    Could not create a device for 'Wooting WootingTwo (HID)' (exception: System.Exception: State format 'SBIT' is not supported as floating-point format
    at UnityEngine.InputSystem.LowLevel.InputStateBlock.FloatToPrimitiveValue (System.Single value) [0x0026d] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\State\InputStateBlock.cs:569
    at UnityEngine.InputSystem.Controls.AxisControl.FinishSetup () [0x00028] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\Controls\AxisControl.cs:219
    at UnityEngine.InputSystem.InputControl.CallFinishSetupRecursive () [0x00026] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\Controls\InputControl.cs:881
    at UnityEngine.InputSystem.InputControl.CallFinishSetupRecursive () [0x0000b] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\Controls\InputControl.cs:880
    at UnityEngine.InputSystem.InputControl.CallFinishSetupRecursive () [0x0000b] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\Controls\InputControl.cs:880
    at UnityEngine.InputSystem.Layouts.InputDeviceBuilder.Setup (UnityEngine.InputSystem.Utilities.InternedString layout, UnityEngine.InputSystem.Utilities.InternedString variants, UnityEngine.InputSystem.Layouts.InputDeviceDescription deviceDescription) [0x00030] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\Devices\InputDeviceBuilder.cs:55
    at UnityEngine.InputSystem.InputDevice.Build[TDevice] (System.String layoutName, System.String layoutVariants, UnityEngine.InputSystem.Layouts.InputDeviceDescription deviceDescription) [0x00042] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\Devices\InputDevice.cs:678
    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) [0x00000] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\InputManager.cs:1033
    at UnityEngine.InputSystem.InputManager.AddDevice (UnityEngine.InputSystem.Layouts.InputDeviceDescription description, System.Boolean throwIfNoLayoutFound, System.String deviceName, System.Int32 deviceId, UnityEngine.InputSystem.InputDevice+DeviceFlags deviceFlags) [0x0005d] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\InputManager.cs:1164
    at UnityEngine.InputSystem.InputManager.OnNativeDeviceDiscovered (System.Int32 deviceId, System.String deviceDescriptor) [0x000a0] in C:\Users\12r45\Documents\GitHub\bullethell\bullethell\Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\InputManager.cs:2069 )
    UnityEngine.InputSystem.InputManager:OnNativeDeviceDiscovered(Int32, String)
    UnityEngineInternal.Input.NativeInputSystem:NotifyDeviceDiscovered(Int32, String)

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.