console-controller
console-controller
The recompiled game asks the runtime for the pad state many times a second through
PSPadBackend::readState(int port, int slot, uint8_t *data, size_t size) in
ps2xRuntime/src/lib/ps2_pad.cpp. The stock file maps raylib's gamepad 0 and a fixed keyboard
layout onto the 32-byte DualShock 2 report. This skill replaces that one file with a generated one
built from your console/controls.json, so any controller raylib can see becomes a DualShock 2,
mapped your way. Nothing else in the runtime changes, so the rebuild is incremental.
Honest limits: rumble is not wired in the runtime, pressure-sensitive buttons are reported as fully pressed or not pressed, and touch zones on Android are invisible (the runtime draws no overlay).
${CLAUDE_SKILL_DIR} below is this skill's folder (where this SKILL.md lives).