Skip to content

Conversation

@enigma9o7
Copy link

That's all it does. It makes the camera buttons move around in the options menu. Makes it easier.

#endif
optmenu_opt_change(&currentMenu->opts[currentMenu->select], 0);
}
} else if (gPlayer1Controller->buttonPressed & D_CBUTTONS) {
Copy link

@mkst mkst Sep 7, 2020

Choose a reason for hiding this comment

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

not my branch, but I'd suggest combining the U/D with the stickY, and L/R with stickX.

something like

if (ABS(gPlayer1Controller->stickY) > 60 || (gPlayer1Controller->buttonPressed & (D_CBUTTONS|U_CBUTTONS)) { 

...

if (gPlayer1Controller->stickY >= 60 || gPlayer1Controller->buttonPressed & D_CBUTTONS) {

as you're copying/pasting a lot of common code this way

Copy link
Author

@enigma9o7 enigma9o7 Sep 8, 2020

Choose a reason for hiding this comment

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

I'm not really a skilled c programmer and really wanted this to work, so just copy pasted to do it myself. Of course if there is a cleaner way to implement the same functionality that is great. Just hope it gets committed in any form! And I completely understand what you're suggesting to change. This was my first attempt at a PR so not sure how to update it but may look into that...

Copy link
Author

Choose a reason for hiding this comment

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

#435

I have updated and resubmitted this. Not sure how to do things completely right with github so going to cancel this one.

@enigma9o7 enigma9o7 closed this Oct 4, 2020
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