Skip to content

Commit 4842289

Browse files
author
Shaun Inman
committed
rgb30: right stick x and y are swapped
1 parent 9ea6e49 commit 4842289

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

workspace/rgb30/platform/platform.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ void PLAT_pollInput(void) {
151151

152152
if (code==RAW_LSX) pad.laxis.x = (value * 32767) / 1800;
153153
else if (code==RAW_LSY) pad.laxis.y = (value * 32767) / 1800;
154-
else if (code==RAW_RSX) pad.raxis.x = (value * 32767) / 1800;
155-
else if (code==RAW_RSY) pad.raxis.y = (value * 32767) / 1800;
154+
// TODO: these seem to be switched on the rgb30 according to the padtest rom
155+
else if (code==RAW_RSX) pad.raxis.y = (value * 32767) / 1800;
156+
else if (code==RAW_RSY) pad.raxis.x = (value * 32767) / 1800;
156157

157158
btn = BTN_NONE; // already handled, force continue
158159
}

0 commit comments

Comments
 (0)