ProgressContributeHow it worksFAQAIMods
Download

OpenRAC · unofficial community project · Mods · Legal · GitHub · Discord

Progress is read from the projects' repositories on the server and refreshed every ten minutes. For scripts and AI tools: progress.json · llms.txt

  1. Home ›
  2. Mods ›
  3. Button swap

Button swap

by OpenRAC contributors · v1.0.0 · 28 downloads

Swaps two of the controller's buttons: Cross and Square, Circle and Triangle, or L1 and R1.

ScriptPALNTSC-U

Didn't open?

Install opens the OpenRAC launcher, which installs the mod and everything it needs. If nothing happened, the launcher is probably not installed yet.

Already have it? Try again, or copy the link and paste it in the launcher under Mods → Add from a link.

Get the launcher
Source
  • About
  • Details
  • Relationships
  • Versions
  • Files
  • Comments

About

Button swap

Swaps two of the controller's buttons for Ratchet & Clank: Cross and Square (jump and the wrench), Circle and Triangle, or L1 and R1, chosen in the mod's Swap setting on the launcher's Mods tab. It works for both controllers, everywhere in the game (menus too), on the PAL and NTSC-U discs. Switch the mod off and the buttons are the game's again.

It is a script mod: a few lines of Luau that the game runs in a sandbox, with no compiler and the same file on every system. It is the example of OpenRAC's script mods (docs/port/MODS.md, section 11): one openrac.on_pad callback that changes each pad report before the game reads it.

Installing

In the OpenRAC launcher, Mods, Add from a link, paste https://github.com/OpenRAC/rac1-mods, and Install Button swap (its row says Runs scripts (sandboxed)). Or add this folder, or its .zip from the repository's releases, with Add a mod. It needs an OpenRAC whose mod interface is 1.1 or later (the first with script mods).

How it works

The port's pad library hands the game each controller's report as the console's scePad2Read fills it in (port/game/common/lib/pad.c), 18 bytes, and calls the mods' pad callbacks with it first:

Bytes
0-1the buttons, a 16-bit word, little-endian; a bit is clear while its button is held
2-5the right stick (x, y), then the left (x, y), 0x80 at rest
6-17each button's pressure, 0xFF held, 0 not, in the order right, left, up, down, triangle, circle, cross, square, L1, R1, L2, R2

The buttons' bits in the word:

BitButtonBitButton
0Select8L2
1L39R2
2R310L1
3Start11R1
4Up12Triangle
5Right13Circle
6Down14Cross
7Left15Square

A swap trades the two buttons' bits in the word and their pressure bytes, so the game sees each one held exactly when the other is.

GPL-3.0-or-later, as the rest of rac1-mods.

Details

Id
button-swap
Type
Script (sandboxed scripts)
Author
OpenRAC contributors
License
GPL-3.0-or-later
Mod interface
1.1 (release ✓)
Games
Ratchet & Clank (PAL, NTSC-U)
Systems
Any system
Impact
Not stated
Tags
controls, accessibility
First released
29 Oct 2026
Updated
29 Oct 2026

RepositoryReport a bugReport a problem with this listing

Relationships

Requires

Nothing: it works on its own.

Versions

  • v1.0.029 Oct 2026PAL, NTSC-U2.7 KBinterface 1.1+

    Built by the build workflow from ce23cb3d0d99db6ce3bad49bddce5290f3a57f5e, against the OpenRAC mod SDK 1.7.0.

    Install: paste this repository's address in the OpenRAC launcher's Mods tab, or add a .zip there.

Files

3 files in v1.0.0
  • main.luau
  • openrac-mod.json
  • README.md

Comments

No comments yet. Tried it? Say how it went.

Comment on GitHub

Didn't open?

Install opens the OpenRAC launcher, which installs the mod and everything it needs. If nothing happened, the launcher is probably not installed yet.

Already have it? Try again, or copy the link and paste it in the launcher under Mods → Add from a link.

Get the launcher
Version
v1.0.0
Size
2.7 KB
Updated
2d ago
Discs
Ratchet & Clank: PAL, NTSC-U
Systems
Any system
License
GPL-3.0-or-later
Downloads
28

Runs in the game's script sandbox.

Install opens the OpenRAC launcher, which adds what the mod needs and keeps it up to date.

Button swap · v1.0.0

Didn't open?

Install opens the OpenRAC launcher, which installs the mod and everything it needs. If nothing happened, the launcher is probably not installed yet.

Already have it? Try again, or copy the link and paste it in the launcher under Mods → Add from a link.

Get the launcher