1. First checks

  1. Set "listDevices": true. At start-up the driver reports every attached device: #index, product name, VID:PID, number of axes / buttons / POVs and the OS id. Copy the name (or a part of it) or the VID:PID into "device". Up to 16 devices are listed.
  2. Set "listInputs": true. After the device is opened the driver prints every input of the device: the OS name, the config key to use in the block (XAxis, Button5, POV0 ...), type, range and the current value. Move the stick while the engine starts and compare the values.
  3. Set "reportChanges": true to print a line each time a button or POV hat changes (Button<n> pressed / released, POV<n> ...). Press the physical button to find its number.
  4. Check the block counters of the input block in DIPanel or System Layout: msgCounter rising = the device state is being written into the block.
  5. The driver status (shown in the stream list) gives the last error text of the device: for example Device not open.

2. Message reference

<name> is the stream name. Messages with InputDeviceDriver come from the driver, messages with InputDeviceStream are written when streams.json is loaded (block mapping errors).

MessageCauseWhat to do
InputDeviceDriver: '<name>' Failed to load InputDeviceAPI. <reason> (error)The InputDeviceAPI shared library (the driver's default library; interfaceAPILib may name another) was not found or could not be loaded. The reason is one of: API library not found, <path>; Dependency DLL missing; Exported function missing; Wrong architecture (32/64 mismatch); DLL Initialization failed; on Linux Failed to load library: ....Put InputDeviceAPI.dll (Windows) or libInputDeviceAPI.so (Linux, searched in the working directory) next to the executable; the build copies it there. Make sure 32/64-bit matches the engine. On Windows the DLL needs the DirectInput runtime (dinput8, part of Windows).
InputDeviceDriver: '<name>' API init failed. <status> (error)The API library was loaded but its initialization failed. On Windows the status reads like DirectInput8Create failed (0x... <text>).Reinstall / repair DirectInput (Windows), check that the process is not restricted (service session without desktop). On Linux check the message text.
InputDeviceDriver: '<name>' attached input devices: <n> (info, with listDevices)List of the devices that were found. With 0 a second line shows the reason, for example No accessible joystick. Permission denied on /dev/input/event*.If the device you expect is missing, see section 4.
InputDeviceDriver: '<name>' open device failed. No game controller / joystick attached (error)Enumeration found no device at all.Plug the device, check it in the Windows "Set up USB game controllers" dialog (joy.cpl) or with evtest on Linux.
InputDeviceDriver: '<name>' open device failed. Device '<device>' (match #<n>) not found. Attached devices: [#<i> '<name>' <VID>:<PID>] ... (error)The device string matches none of the attached devices (or fewer than deviceIndex + 1 match). The message already lists what is attached.Copy a name part, the VID:PID or #index from the list. See section 3.
InputDeviceDriver: '<name>' open device failed. CreateDevice failed (0x... <text>) / SetCooperativeLevel failed ... / EnumObjects failed ... / SetDataFormat (custom object format) failed ... / Acquire failed ... / Device instance not found in enumeration / Device has no axes, buttons or POVs (Windows, error)DirectInput refused the step named in the text. The text after the hex code is one of: input lost, not acquired, unplugged, access denied / other application has priority, invalid parameter, not initialized, device not registered, no interface, unknown error. The device was unplugged between listing and opening, or it is a device with no usable objects (for example a keyboard-like HID).Replug the device, close vendor software that holds it, try another USB port. Devices without axes / buttons / POVs cannot be used.
InputDeviceDriver: '<name>' open device failed. open(</dev/input/eventN>) failed: <reason> and ... Cannot open /dev/input and No accessible joystick. Permission denied on /dev/input/event* (add the user to the 'input' group or add a udev rule) (Linux, error)The evdev files cannot be read by the user that runs the engine.Add the user to the input group (log out / in) or add a udev rule giving the device read permission. Run as root only to test.
InputDeviceDriver: '<name>' opened '<product>' (VID:PID XXXX:YYYY) axes:<a> buttons:<b> POVs:<p> (info)The device was opened (also printed after a reconnect together with device reconnected).Check that the counts are what you expect.
InputDeviceDriver: '<name>' input '<key>' (mapped to '<element>') does not exist on device '<product>' (error)A block key such as ZRotation, Slider1, POV1 or Button40 is not an input of the opened device. Collective keys (Buttons, Axes, POVs, Sliders) are not checked: inputs that the device does not have stay 0 (POVs centered).Use listInputs and use only the keys that are printed. Remember that the stick and the throttle of a HOTAS are often two separate devices.
InputDeviceDriver: '<name>' device '<product>' lost. <status> (error, printed once)The device was unplugged or DirectInput lost it while the engine runs (unplugged, input lost, Acquire failed, GetDeviceState failed; Linux: read failed: ...).Replug the device. The driver tries to reopen it every reconnectMS and prints device reconnected; see section 5.
InputDeviceDriver: '<name>' device reconnected (info)The device came back and was reopened.Nothing to do. The block values are written again on the next frame.
InputDeviceDriver: '<name>' no device open. <text> / API library not loaded (info)Output of the listInputs / listing function when the device or the library is not available.Fix the earlier open / load error.
InputDeviceStream: stream '<name>' block '<block>' direction must be "in" for input devices (error)The block has "direction": "out". Force feedback / output is not supported.Use "direction": "in".
InputDeviceStream: stream '<name>' block '<block>' unknown input '<key>'. Use XAxis, YAxis, ZAxis, XRotation, YRotation, ZRotation, Slider0, Slider1, POV0.., Button0.., Axes, Buttons, POVs, Sliders, Buttons[n], Axes[n], POVs[n], Sliders[n] (error)A key in the block is not a known input (typo, or an indexed key above the device maximum). Keys are not case sensitive and spaces, _ and - are ignored. Also accepted: X, Y, Z, RX, RY, RZ, Rudder / Twist (= RZ), Throttle / Slider (= Slider0), Hat, Hats, Btn<n>.Correct the key. Other block keys (raw, direction, framePerMS, rawout, headerMarker, rawcounterbyte, model, function, comment, description, enabled) are not treated as inputs.
InputDeviceStream: stream '<name>' input '<key>' missing "element" (error)The input is written as an object but has no element.Add "element": "Name".
InputDeviceStream: stream '<name>' input '<key>' value must be an element name or an object (error)The value is a number, boolean or array.Use "Element" or { "element": "...", ... }.
InputDeviceStream: stream '<name>' input '<key>' bad element index syntax '<text>' (error)An element like Name[3 has no closing bracket.Write Name[3].
InputDeviceStream: stream '<name>' invalid block raw name '<raw>' (expected LRU.Block) (error)The block's raw does not have the form LRU.Block.Use the LRU and block names from your ICD.
InputDeviceStream: stream '<name>' LRU '<lru>' not found for element '<element>' and ... element '<element>' not found in LRU '<lru>' (error)The element name in the mapping is not in the database. A bare name is looked up inside the block's own LRU and block (Block.Element); Block.Element and LRU.Block.Element are also accepted.Check the spelling against the ICD / generated LRU.
InputDeviceStream: stream '<name>' input '<key>' element '<element>' invalid item size (<bits> bits, <count> items, element <n> bits) (error)For array elements the item size could not be worked out (itemBits/count do not fit the element, or items bigger than 64 bits).Give "itemBits" and/or "count" in the object form (see the Input Device Driver fields in the Streams manual).
InputDeviceStream: stream '<name>' input '<key>' unknown format '<f>' (float, double, int, raw) (error)Bad format value. index, index8 and degrees are accepted too.Use float, double, int or raw.
InputDeviceStream: stream '<name>' input '<key>' element '<element>' is <bits> bits, float formats need 32/64 bits. Using int (warning)A float / double format was requested for an element that is not 32 / 64 bits. The value is stored as an integer instead.Use a float32 / float64 element for axes, or choose int and set scale / offset.
InputDeviceStream: stream '<name>' input '<key>' element '<element>' item <n> out of range (0..<max>) (error)The array element is smaller than the index: for example Button40 into an array of 32.Enlarge the array in the ICD, or use the indexed key / index that fits.
InputDeviceStream: stream '<name>' block '<block>' has no input mappings (e.g. "XAxis": "XaxisPos") (warning)The block has no input key at all (for example the keys are misspelled as nested inside another object).Add keys to the block itself.
InputDeviceStream: stream '<name>' block '<block>' multiple raws, only the first is used (warning)raw lists more than one block.Use one input block per mapped block; add more blocks to the stream instead.

3. Choosing the device string

The device field is tested in this order (case-insensitive):

  1. empty: the first device found.
  2. "#n": the device whose enumeration index (as printed by listDevices) is n.
  3. "vvvv:pppp": USB vendor:product id in hex, for example "231D:0120".
  4. the exact OS id (the id: / info: text in the device list; on Linux the /dev/input/eventN path).
  5. a part of the product name.
ProblemCauseFix
The wrong device is opened (for example the throttle instead of the stick)A name part like "X-56" matches both parts of a HOTAS; with an empty string the first one wins. The order of devices can change when USB ports change.Use the full product name ("X-56 Rhino Stick") or the VID:PID. If two identical devices are attached (two sticks of the same model), use deviceIndex (0 = first match, 1 = second) — but which one is "first" can change after replugging; the OS id is more stable.
Name works on one PC, not on anotherThe vendor driver reports a different name (for example "vJoy Device", "Controller (Xbox One)").Use listDevices on the target PC and use a shorter part of the name, or the VID:PID.
One stream per device but both open the same deviceBoth streams have an empty device (the first device each time).Give each stream its own device value.
Device missing from the listWindows: DirectInput lists only game controllers (HID with axes/buttons). Linux: only evdev devices that look like a joystick (axes, buttons, or hats) that the user may open. An Xbox controller driven only through XInput by a program in exclusive mode may be missing.Check joy.cpl (Windows) or evtest (Linux). On Linux fix permissions (see message table). Install the vendor driver.

4. Busy, background and exclusive access

5. Hot unplug and reconnect

6. Axis, range, dead zone and buttons

SymptomCauseFix
Axis value is -1..1 but the ICD expects another rangeFloat / double axis values are normalized to -1..1 (listInputs prints both the raw range and the normalized value). An integer element gets round(normalized × scale + offset).Use "scale" and "offset" in the object form, or "format": "raw" to get the device raw value (for example 0..65535).
Axis reads wrong directionThe device axis is reversed.Add "invert": true (also works for buttons and for the raw format).
Stick at rest shows a small value / jitterMechanical centre offset, or noisy potentiometer.Set a dead zone: "deadzone" in the driver (default for all axes, 0..0.99) or per input in the object form. The value is cut to 0 inside the dead zone and rescaled outside it. Note that the dead zone is applied to the normalized value, before scale.
Throttle / slider is wrong or missingOn Windows throttles are often reported as Slider0 / Slider1 or as ZAxis, depending on the vendor driver. Names such as Throttle are aliases of Slider0.Use listInputs and the printed config key.
Wrong button is triggered / button numbering is off by oneButtons are numbered from 0 (Button0), while vendor tools and games usually count from 1. Collective "Buttons": "ButtonStatus" maps device ButtonN to ButtonStatus[N]. On Linux the numbering follows the order of the evdev button codes of the device, which can differ from the Windows order.Use reportChanges to learn the number by pressing the button. Re-check numbers when moving between Windows and Linux.
Button element gets 0/1 but the ICD expects another valueInteger buttons are 0 or 1; a float element gets 0.0 or 1.0 times scale plus offset.Use scale / offset or invert.
POV hat value is unexpectedDefault for an integer element is the 8-way index 0..7 (clockwise from up, N = 0), 8 = centered. A float element gets degrees (centered gives -1.0). "format": "raw" gives centi-degrees, -1 when centered.Choose the element type and format that match the ICD. Use "degrees" / "index" as format names if clearer.
Collective Buttons / Axes reports only part of the buttonsThe mapping stops at the smaller of the element array size and the device maximum.Enlarge the ICD array, or map individual buttons with Button<n>.

7. Rate, polling and framePerMS

The input device is read on the stream's read cycle. For input blocks framePerMS should usually be -1:

SymptomCauseFix
Values update more slowly than expectedpollRateMS > 0 limits polling to once every N ms and returns the cached state in between. A numeric framePerMS also limits the rate.Set "pollRateMS": 0 (poll on every read) and "framePerMS": -1.
Model is not triggered every frameThe block is only updated when the device state changed since the last read; unchanged frames report no data.This is normal: the block is written only when the device state changed. The block keeps its last values in between.
High CPU / many DirectInput calls with many streamsEvery stream polls its device each frame.Use pollRateMS (for example 5) for devices that change slowly.

8. Platforms

9. Other problems

SymptomCauseFix
Stream starts, no error, block never changesNo mapping matched, the block has framePerMS: 0, or the device never changed since start (the first state is always written once).Use reportChanges and listInputs; set -1.
Values stored in the wrong place / neighbouring element overwrittenElement bit offset or item size is different than expected; items are packed LSB first.Give itemBits / count explicitly for array elements and check the element size in the ICD.
Device works in a game but values are wrong in the engineThe game uses a vendor profile or remapper that changes axes; the engine reads the physical device.Compare with listInputs; use the same (virtual) device in both if needed.
Driver status shows "API library not loaded"The load of the library failed at start; no mapping can work.Fix the first error at the top of the log.
Config values changed unexpectedlyThe driver limits values: deviceIndex and pollRateMS below 0 become 0, reconnectMS below 100 becomes 100, deadzone is clamped to 0..0.99.Use values in range.
Message counters and error counters of every block are visible live in System Layout. Driver and block fields are documented in the Streams manual (Input Device Driver section); general stream setup is in How to Set Up Streams.