Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Fix L=A by comparing the rawkeys to the previous keyinput #2042

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AreaZR
Copy link
Contributor

@AreaZR AreaZR commented Oct 3, 2024

Also remap newAndRepeatedKeys

…tead of the converted keys

Also remap newAndRepeatedKeys
@mrgriffin
Copy link
Collaborator

Is there somewhere in-game where I can verify that this change works?

@AreaZR
Copy link
Contributor Author

AreaZR commented Oct 8, 2024

Is there somewhere in-game where I can verify that this change works?

Absolutely. Because heldKeys compares with keyInput, holding the L button alongside holding another button means neither button will never be considered to be held if L=A is set. Holding L button alongside another button means both buttons are repeating.

Honestly, we can get away with not adding A to newandrepeating because it is never checked for newandrepeating, but what was mentioned about the check above still applies.

@mrgriffin
Copy link
Collaborator

Sorry, I think you misunderstood my question.

Where in-game should I test the L=A repeating behavior so that I can check that this PR works?

@AreaZR
Copy link
Contributor Author

AreaZR commented Oct 8, 2024

Sorry, I think you misunderstood my question.

Where in-game should I test the L=A repeating behavior so that I can check that this PR works?

Any menu where holding a button has a behavior. For instance, if you hold the L button while also holding the down button in the Pokedex, it won't scroll downwards, and instead just go down by 1 and remain, which is changed by this PR.

@AreaZR
Copy link
Contributor Author

AreaZR commented Oct 10, 2024

In all honesty, we can completely get away with not remapping newAndRepeatedKeys, as the only values checked in this value are DPAD values, but I just have it here for completion's sake. I can remove it if you want.

@AreaZR
Copy link
Contributor Author

AreaZR commented Oct 11, 2024

What do you think @mrgriffin? Should I even bother remapping newAndRepeatedKeys?

@mrgriffin
Copy link
Collaborator

I haven't had the time to familiarize myself with the code and test your change in-game yet. But once I've done that I can give you an opinion about newAndRepeatedKeys :)

@AreaZR
Copy link
Contributor Author

AreaZR commented Oct 16, 2024

Please let me know when you get the chance :)

newAndRepeatedKeys is only checked for DPAD values, so it doesn't affect pret at all.
@AreaZR
Copy link
Contributor Author

AreaZR commented Oct 21, 2024

newAndRepeatedKeys is only checked for DPAD values, so it doesn't affect pret at all.

Going to just take it out.

@AreaZR
Copy link
Contributor Author

AreaZR commented Oct 28, 2024

"newAndRepeatedKeys is never remapped either." Should probably be moved to where the remapping happens, honestly.

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