Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Input system not detecting controls from HID Usage Page 0x02 (Simulation)

Discussion in 'Input System' started by Chep_Wade, May 25, 2020.

  1. Chep_Wade

    Chep_Wade

    Joined:
    Apr 2, 2014
    Posts:
    1
    I've been trying to get a Cobra V5 joystick working in the input system and found that the twist and throttle axis are not being detected. The HID desriptor reports both of these axis under Usage Page 0x2 (Simulation). All other axis and buttons on the stick are reported under pages 0x1 (Generic Desktop) and 0x9 (Button) and are detected by the input system.

    All the other devices I have available do not report any controls using page 0x2 so I cant be sure if this issue is unique to the Cobra or applies to all devices which use page 0x2. I've also checked in windows game controller properties and a couple of non unity games and confirmed that this is not a hardware issue.

    HID Desriptors for twist and throttle

    Element: 28
    Usage Page: 0x2 (Simulation)
    Usage: 0xBA (Rudder)
    Report Type: Input
    Report ID: 1
    Report Size in Bits: 10
    Report Bit Offset: 38
    Collection Index:0
    Unit: 0
    Unit Exponent: 0
    Logical Min: 0
    Logical Max: 1023
    Physical Min: 0
    Physical Max: 0
    Has null state: false
    Has preferred state: true
    Is Array: false
    Is non-linear: false
    Is relative: false
    Is constant: false
    Is wrapping: false

    Element: 29
    Usage Page: 0x2 (Simulation)
    Usage: 0xBB (Throttle)
    Report Type: Input
    Report ID: 1
    Report Size in Bits: 10
    Report Bit Offset: 28
    Collection Index:0
    Unit: 0
    Unit Exponent: 0
    Logical Min: 0
    Logical Max: 1023
    Physical Min: 0
    Physical Max: 0
    Has null state: false
    Has preferred state: true
    Is Array: false
    Is non-linear: false
    Is relative: false
    Is constant: false
    Is wrapping: false