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

Infinite mouse movement for S R shortcuts #362

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kaixoo
Copy link

@kaixoo kaixoo commented Dec 8, 2024

Implements infinite mouse movement like in blender for shortcuts like S R and, perhaps, inputs.

Fixes #342

I could sketch this code while I figure out QCursor's API and try to compile Qt 5.15.16. Am I in the good direction or is this overcomplicated?

@rodlie
Copy link
Member

rodlie commented Dec 10, 2024

  1. src/ui is a library, your code must be a proper class
  2. Should this be a class?
  3. How is this going to work in Friction?

PR's should be implemented enough to be usable/testable.

@kaixoo
Copy link
Author

kaixoo commented Dec 13, 2024

I thought of using a Singleton at first but it got too complicated. Maybe it should be one tho. This is just a barebones while I try to compile Qt and actually test the code, so you can review if it's worth it.

How does it work? As a Singleton, you'd change the cursor's state from e.g. FrictionCursor::get_instance().set_free() depending on what you want. If you are using the S R shortcuts, you'd change to limited mode. If you are modifying an input box, you'd change to locked mode.

esquema friction

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.

Add infinite mouse movement in S R shortcuts
2 participants