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

Automatically have ResetMouseMoveTriggerCenter find the center #64

Open
luttje opened this issue Nov 1, 2023 · 0 comments
Open

Automatically have ResetMouseMoveTriggerCenter find the center #64

luttje opened this issue Nov 1, 2023 · 0 comments
Labels
ux Something is unclear or works janky

Comments

@luttje
Copy link
Owner

luttje commented Nov 1, 2023

As discussed below, the way the ResetMouseMoveTriggerCenter app command works right now is weird. It should not require you to move the mouse a bit, but immediately center it.

Additionally it would be nice if Key2Joy would recognize this problem and cause it to be called automatically. Should be doable since games would likely reset the mouse to the same position consistently.

Block default mouse movement

In order to only let the simulated GamePad stick movement arrive at the game (and not the mouse movement as well), you should enable these configurations in Tools > User Configurations:
image

Reset the center after the game has started

In most games when you start, the cursor will be moved somewhere on the screen. This causes the following problem in Key2Joy:

  1. You arm the mapping
  2. The cursor is locked to it's current position (e.g: 100, 100). That is set by Key2Joy as the center.
  3. If you move (e.g: to 105, 105) Key2Joy knows to move the stick accordingly (e.g: by +5, +5)
  4. You open the game
  5. The game detects a gamepad and moves your cursor to 0, 0
  6. You move (e.g: by +5, +5), but now Key2Joy thinks you moved a lot (e.g: from 100, 100 to 5, 5) causing your character to spin around wildly.

To fix this we need to be able to re-center the cursor once in-game. For that we can setup the following action (which we've bound to L):
image

With this ResetMouseMoveTriggerCenter App Command configured, you can fix Key2Joy after step 5 above and press 'L' while in-game. This will nullify the center. You should then give you mouse the smallest move, so whatever position it is at right now is registered as the new center.

🐛 Notes on this behavior

I'm looking for ways to make this more intuitive and less work for you, the user. I'm progress on that in this issue:

Originally posted by @luttje in #63

@luttje luttje added the ux Something is unclear or works janky label Nov 1, 2023
@luttje luttje added this to the Launch stable (1.0.0) milestone Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux Something is unclear or works janky
Projects
None yet
Development

No branches or pull requests

1 participant