Closed JustinBoverhof closed 3 months ago
fix to issue #13
The key up event assumed velocity was still equal to the corresponding key down.
This means that if you reverse directions in the way described in the issue it will increment velocity beyond the max.
Added condition to the if statements that prevent the event from over-correcting beyond max velocity.
(I also was not sure which branch to commit to as the dev branch was behind main but I know from reading the docs that it says to commit to dev first)
Hi @JustinBoverhof , can you change this PR to point to the main branch instead?
main
fix to issue #13
The key up event assumed velocity was still equal to the corresponding key down.
This means that if you reverse directions in the way described in the issue it will increment velocity beyond the max.
Added condition to the if statements that prevent the event from over-correcting beyond max velocity.
(I also was not sure which branch to commit to as the dev branch was behind main but I know from reading the docs that it says to commit to dev first)