Skip to content

Joycontrol configurable by pressing joypad buttons#27

Open
szymor wants to merge 12 commits intosoulfu-dev:masterfrom
MiyanoOsu:master
Open

Joycontrol configurable by pressing joypad buttons#27
szymor wants to merge 12 commits intosoulfu-dev:masterfrom
MiyanoOsu:master

Conversation

@szymor
Copy link
Copy Markdown
Collaborator

@szymor szymor commented Apr 8, 2026

Really nice changes that need to be properly re-reviewed. I messed up the review for Miyano :(

Comment thread source/input.c

#define MAX_JOYSTICK 8
#define MAX_JOYSTICK_BUTTON 16
#define MAX_JOYSTICK_BUTTON 30
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaron liked to assign powers of 2, instead of arbitrarily chosen numbers. I have seen in the code there are no explicit dependencies on this fact, but wouldn't it be better to set it to 32? Just a question.

Copy link
Copy Markdown
Collaborator

@MiyanoOsu MiyanoOsu Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

30 button is enough for controller, set to 32 is not harm, just not necessary, the array to store button will expand 2 slot that doing nothing

Comment thread language/GERMAN.txt Outdated
@@ -1,4 +1,4 @@
Hauptmen�
Hauptmen�
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You messed up diactrics. Translations are messed up now!!!

Comment thread datadir/WCONTROL.SRC
i = 0
while(i < 9)
if(i < 5)
key = FileReadByte(file, offset + i + 18)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please leave more comments, as your script implementation looks a bit messy. I double checked whether offsets are correct.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, it use for write offset from 18 to 22 and 24 to 27

Comment thread source/runsrc.c
break;
case SYS_LASTKEYPRESSED:
i = last_key_pressed;
if(j == 1) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please leave comments what j means in this context!

@szymor szymor requested a review from xmeadow April 8, 2026 06:21
@MiyanoOsu
Copy link
Copy Markdown
Collaborator

okay, i reverted the encoding of translate files

Comment thread datadir/WCONTROL.SRC
i = 0
while(i < 9)
if(i < 5)
key = FileReadByte(file, offset + i + 18)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, it use for write offset from 18 to 22 and 24 to 27

Comment thread datadir/WCONTROL.SRC
StringAppend(String(0), StringLanguage(3), 256)
StringAppendNumber(String(0), player+1, 256)
TitleBar(TRUE, 0.0, -5.5, String(0))
TitleBar(FALSE, 0.0, -5.5, String(0))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you set TRUE, the box of player mapping button can move, it up to u, but i prefer it static

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants