Skip to content

DeckForge Input Studio v0.2.0

Latest

Choose a tag to compare

@NaustudentX18 NaustudentX18 released this 14 Nov 02:30
· 6 commits to main since this release

DeckForge Input Studio v0.2.0

First release that actually runs on a Steam Deck. v0.1.0 built and passed its
tests but could not have worked on hardware — every blocker below was found by
probing the machine, and each one is fatal on its own.

Upgrading from v0.1.0

Replace the plugin folder. Back up ~/.config/deckforge/ first if you made
profiles with 0.1.0 — the template format changed and old vault entries are not
guaranteed to load.

The downloaded zip is now 12 MB, not 359 KB. That is the vendored Python
dependencies the plugin needs; the old zip shipped none of them and could never
have started on a Deck.


Why 0.1.0 could not run

Blocker Evidence Fix
Decky's interpreter is a frozen CPython 3.14 that cannot see pip packages probe plugin: fastapi, uvicorn, pyudev, mido, pydantic all ModuleNotFoundError vendored cp314/x86_64 wheels in py_modules/lib (glibc floor 2.17, Deck has 2.43)
Decky adds only <plugin>/py_modules to sys.path decky_loader/plugin/sandboxed_plugin.py:91 import top-level deckforge.*, never py_modules.deckforge.*
The root flag sets HOME=/root probe: home=/root flag removed — nothing needed it, and it broke every Steam path
The frozen stdlib lacks logging.config uvicorn died at import deckforge/compat.py loads the real 3.14 module

Steam integration was writing to nowhere

  • Templates went to userdata/<id>/config/controller_configs/templates/ and
    userdata/<id>/241100/remote/ — neither exists on SteamOS 20261023.100.
    Steam reads controller_base/templates/.
  • The VDF emitter hand-rolled a controller_mappings body that is not Steam's
    schema. Steam's format is group-based; analog output is a group setting
    (output_joystick), not an xinput_axis binding — which appears in none of
    the 77 shipped templates. The compiler now patches Valve's own skeleton, so
    Steam always receives a structurally valid file, and controls it cannot express
    are reported rather than dropped.
  • Game assignment embedded the whole config. Steam stores only
    {"template": "<file>.vdf"} and loads it by name.

New: smart auto-profiler

One press identifies connected hardware and builds a matching profile.

It does not trust the mainstream databases, because they are wrong here:

  • SDL classifies 20bc:5500 — the id a CRKD-labelled unit actually reported — as
    a PS3 controller.
  • SDL's gamecontrollerdb.txt contains zero rhythm-guitar entries.

Identity is therefore layered: capability fingerprint (measured from evdev) →
vendored identity table (613 controllers) → name heuristics.

Three false positives were found and gated, each against a real device's evdev map:

  • A laptop keyboard read as a guitar — media keys emit BTN_C/BTN_Z/BTN_THUMB,
    the same codes as a solo-fret strip.
  • A mouse read as a macropad — REL_* axes now mark a pointing device.
  • A wireless receiver with the guitar switched off read as a guitar at 95% and
    produced a silently wrong profile (strum on dpad buttons instead of the measured
    hat axis, nothing reported as skipped). Now refused with "is the controller
    switched on?"
    .

Steam's own virtual pads (0x28DE, virtual bus) are reserved and never remapped.

New: six one-click profiles

Clone Hero, YARG, Fortnite Festival, Rock Band 4, Guitar Hero III, and KeyJam.
Each carries the Mode Dial position it requires, because for some games the
bindings are meaningless without it — Festival mode 1 maps CTRL to Select, which
opens a menu and cannot be rebound in-game. Rock Band 4 is flagged as needing the
Xbox-licensed model, since the multi-platform guitar is not seen by RB4 as a guitar.

New: mobile-first PWA

  • Manifest, service worker, icons. The shell is cached; the API never is —
    every value is live hardware state, and a stale device list is worse than an
    honest failure.
  • Phone layout: bottom bar plus a "More" sheet, binding editor as a bottom sheet,
    safe-area insets, 44 px targets, 16 px inputs (iOS zooms anything smaller).
  • Desktop keeps the 1280×800 Deck framing.

UI rebuilt on a real design system

The old UI had 110 distinct hard-coded hex colours across ~2,000 lines of
inline styles and no tokens, so two panels could both be "surface" and be four
different colours. Now: tokens.css (palette, spacing, radii, fluid type,
elevation, motion honouring prefers-reduced-motion), base.css primitives, and
mobile-first rules throughout. Emoji used as icons (13 of them) replaced with a
hand-written SVG set, per UI/UX Pro Max guidance.

Fixed

  • API client derived its port from nothing; now derives it from the page origin,
    so the studio works when served on any port.
  • Blueprints were pinned to fixed pixel sizes (420×740 guitar) and overflowed the
    panel on both Deck and phone. They now size from their viewBox and fit at
    every width — measured for all nine.
  • firewalld blocked :8765 on the LAN while allowing the tailnet, so phone
    pairing failed only over Wi-Fi. Port opened.

Known limits

  • Whammy cannot be an analog axis in Steam Input. Analog output is group-level;
    there is no axis binding string.
  • BTN_MODE (guide) and BTN_BASE have no writable slot — Steam owns them.
    Reported as unsupported, never silently dropped.
  • The 20bc:5500 id is the ShanWan bridge chip's, not CRKD's (0351/3651).
    It is accepted for detection, but which Mode Dial position was active during
    capture was never recorded, so it is not evidence of a dial position.
  • Verified with 128 backend tests, a clean tsc, and end-to-end runs against a
    live Steam install. Not yet verified on physical hardware — the Deck was
    offline while this was built.

Install

curl -sL https://raw.githubusercontent.com/NaustudentX18/deckforge-input-studio/main/install.sh | bash

Or install the attached zip via Decky Loader → Developer → Install from zip.
Then plug the guitar in, set the Platform Slider to PC and the Mode Dial to
1, and press ⚡ Auto-Profile. Wired or the 2.4 GHz dongle both work.

Full details: LAUNCH.md ·
HANDOVER.md