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

[Pokemon Emerald] player cannot move left / right when already moving in a up/down direction #15

Open
ITotalJustice opened this issue Apr 2, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ITotalJustice
Copy link
Owner

if the player is walking forward, then right is pressed, on the gba the player would move right. after releasing right, the player continues to walk forward.

this doesnt happen in my emulator. my guess is that what actually happens on the gba is that the dpad is a rocker, so pressing a direction only presses that single direction.

this is easy to replicate the gba with any controller, but on pc with a keyboard, not so much.

not sure the best path to handle this. i guess having 2 copies of the keystate. when a direction is set, set it. when another direction is set whilst the current direction is set, save the current keystate to the copy, then unset that direction and set the new direction. upon releasing that new direction, load back the previous keystate.

@ITotalJustice ITotalJustice added the bug Something isn't working label Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant