/openjoystickdriver:writing-ojd-controller-patches [VVVV:PPPP] [change]from openjoystickdriver
Writes OpenJoystickDriver ControllerPatch JSON/plist files to fix bundled controller records (deadzone, handler, mode key). For macOS users with OJD installed.
Ships in openjoystickdriver. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Request: $ARGUMENTS
A ControllerPatch changes a few keys of a record OJD has. No record (ojd record show VVVV:PPPP exits 1) means a Controller record instead: /openjoystickdriver:writing-ojd-controller-records.
Draft as JSON, convert with plutil -convert xml1 -o vvvv-pppp.patch.plist FILE.json (lowercase hex name). Read one with plutil -convert json -o - FILE.plist.
{
"apiVersion": "openjoystickdriver/v1alpha4",
"kind": "ControllerPatch",
"selector": { "vendorID": 1118, "productID": 746 },
"patch": { "tuning": { "stickDeadzone": 0.08 } }
}
Merge semantics, which decide what the patch must contain:
patch: dictionaries merge per key; scalars override; arrays replace whole.modes: merge by id. Same id merges into that mode; new id adds one.remove: dotted paths deleted before the merge (tuning.stickDeadzone, modes.<id>). The only way to delete, since plists have no null. Remove a whole section rather than its last key; an empty section is invalid.selector: decimal vendorID + productID, or model (045E-028E), or all: true. vendorID and productID cannot be patched.- [ ] ojd record show VVVV:PPPP record exists; note each field's layer
- [ ] ojd record draft VVVV:PPPP > draft.plist optional; user presses every control 10 s
- [ ] keep only changed keys
- [ ] ojd record validate FILE exit 1 = invalid or no-op; fix the named path
- [ ] ojd record install FILE --dry-run
- [ ] ojd record install FILE service applies it; reconnect older pads
- [ ] ojd record show VVVV:PPPP the field now shows layer User
Undo: ojd record remove VVVV:PPPP.
| Goal | Key |
|---|---|
| deadzone | tuning.stickDeadzone |
| OJD handles the pad | server: OJD (or ojd controller claim CONTROLLER) |
| macOS handles the pad | server: System (or ojd controller release CONTROLLER) |
| wrong button bit | input.layouts, see /openjoystickdriver:writing-ojd-controller-records |
| rumble | modes[].session.rumble, see /openjoystickdriver:adding-ojd-rumble |
Layers, weakest first: bundled record, bundled patch, package patch, user patch; a unit patch applies last.
Every value traces to watch, capture, or maker docs. Ask before --force.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub openjoystickdriver/openjoystickdriver --plugin openjoystickdriver6 skills in this plugin
/adding-ojd-rumbleAdds rumble to an OpenJoystickDriver controller with a session.rumble template, including follow-up and stop reports, and checks it with packet captures. Use when a pad's motors stay still./diagnosing-ojd-controllersDiagnoses a game controller under OpenJoystickDriver (ojd) on macOS by reading its identity, record, inputs, and packets. Use when a pad is missing, misread, silent, or needs a support report./generating-ojd-documentsWrites a JavaScript generator that ojd generate turns into checked OpenJoystickDriver records, patches, profiles, or virtual devices. Use when several controller models differ by a few details./packaging-ojd-modsPackages OpenJoystickDriver records, patches, profiles, virtual devices, and protocol descriptions as a mod folder with a mod.plist manifest. Use when sharing ojd files with other users./writing-ojd-controller-recordsWrites a complete OpenJoystickDriver Controller record for a model with no bundled record, maps its report bits, and replays a capture to test it. Use when ojd does not know a controller.Other plugins' skills for the same job