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

Diagonal movements are odd #10

Open
abrudz opened this issue Jan 9, 2022 · 3 comments
Open

Diagonal movements are odd #10

abrudz opened this issue Jan 9, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@abrudz
Copy link

abrudz commented Jan 9, 2022

  1. Somehow they seem to not follow the normal acceleration rules, instead being very slow.
  2. Depressing an orthogonal movement together with a diagonal one makes the mouse fly orthogonally at exceptional speed.
@wirekang wirekang added the bug Something isn't working label Jan 9, 2022
@pkt-zer0
Copy link

It seems like if you press up + left at the exact same time, the horizontal and vertical velocity will be the same. If you input e.g. up slightly later, then the horizontal speed will be way larger than the vertical one.

I think you might want to keep the current speed when a vertical direction button is pressed in addition to a horizontal one, and simply change direction.

@wirekang
Copy link
Owner

Fixed it.

@pkt-zer0
Copy link

@wirekang I'm not sure if I should open a new issue for this, but even in 2.0 there are some odd things going on with multiple simultaneous direction presses. Take the following scenario:

  • Hold down and left to move diagonally down-left.
  • Push right momentarily.
  • This stops the cursor dead in its tracks, even if you release the key for right.
  • You can't move the cursor until you release all but one directional keys.

Pushing opposite directions on a keyboard can happen fairly easily when switching directions, even if only for a brief amount of time. What seems like a straightforward way to fix this is to have opposite directions cancel each other out: if you're pressing up and down at the same time, it should be as if you were pushing neither; and so on.

@wirekang wirekang reopened this Jan 26, 2022
@ghost ghost mentioned this issue Jan 17, 2024
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

3 participants