/openjoystickdriver:adding-ojd-rumble [VVVV:PPPP]from openjoystickdriver
Adds rumble support to an OpenJoystickDriver controller by creating a session.rumble template with motor reports, follow-ups, and stop sequences, verified via packet captures.
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.
Read when SKILL.md points to them.
Controller: $ARGUMENTS
HIDReportLayout, HIDDescriptor, and VendorPS3ThirdParty modes are input-only until session.rumble names a report. OJD sends it even when macOS handles the pad, since macOS never drives these motors.
Rumble bytes need a source, never a guess: a vendor report that merely looks right can mean another command to the pad. Strongest first:
drivers/hid/hid-*.c, such as hid-dr.c) or SDL's HIDAPI driver.Cite the source of each byte. With no source, stop and ask the user for a capture.
ojd controller send writes one whole report with no record change. Show the bytes and their source, and send only after the user agrees.
- [ ] second terminal: ojd controller capture CONTROLLER
- [ ] ojd controller send CONTROLLER "MOTOR REPORT"; then each follow-up report
numbered report: first byte is the ID, add --report-id N; feature report: --feature
- [ ] send the stop report (or zeroed motor bytes) at once; send never stops motors
- [ ] user reports what they felt; keep the working bytes for the template
DragonRise 0079:0006: "51 00 C8 00 C8 00 00", "FA FE 00 00 00 00 00", then "F3 00 00 00 00 00 00".
Keys, limits, E5007 messages, and the DragonRise 0079:0006 worked example: references/rumble-template.md.
Mapping decisions:
lowFrequency = strong/left motor (--left), highFrequency = weak/right (--right); trigger motors use leftTrigger/rightTrigger.bytes holds fixed bytes such as a command byte; motors overwrite their offsets.followUp when the pad applies a motor report only after a commit report.stop when an all-zero motor report does not stop the pad.resendIntervalMilliseconds only when the pad stops on its own after a timeout.Bundled model → patch (/openjoystickdriver:writing-ojd-controller-patches); unknown model → the user's record.
- [ ] ojd record validate FILE
- [ ] ojd record install FILE; reconnect a pad that was already connected
- [ ] second terminal: ojd controller capture CONTROLLER
- [ ] ojd controller rumble CONTROLLER --left 200 --right 200
expect Tx: motor report, each followUp, then stop after 0.45 s (max --duration 5)
- [ ] user confirms each motor: --left 200 --right 0, then --left 0 --right 200
| Capture | Felt | Next |
|---|---|---|
no Tx | no | template missing from the active mode, or another app holds the pad |
Tx as written | no | different report, length, or kind |
Tx as written | swapped | swap the two motor bytes |
Tx as written | yes | works; report with the capture |
A bundled record gains a template only after a motor is felt on hardware. Until then the patch stays in the user's folder or a package, and the work is reported as hardware-gated. Pads under one VID:PID differ inside; confirm length against this pad. Ask before --force.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ojd, rumble, controller, hid, gamepad
6 skills in this plugin
/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.npx claudepluginhub openjoystickdriver/openjoystickdriver --plugin openjoystickdriverOther plugins' skills for the same job