Search Unity

InputControlPath - use fixed USB ID rather than Windows name?

Discussion in 'Input System' started by pitchblende, Jun 23, 2021.

  1. pitchblende

    pitchblende

    Joined:
    Jan 9, 2020
    Posts:
    71
    Is there a way to specify the Input Device path using the device ID rather than the Windows-determined "[Manufacturer] [Product Name]" combo?

    I ask because I have an unusual device that Windows sometimes calls one thing, sometimes calls another, because of some unknown issue with a driver that nobody seems to know anything about. Unless I create two sets of the same bindings, the game only sees the input device when it is named a specific thing.

    But the USB ID never changes.

    E.g. something like:

    <HID::HID\VID_1DD2&PID_22A0>/trigger