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

Non-Exclusive LinuxMouse Offset Bugfix #94

Closed
wants to merge 2 commits into from

Conversation

VENTDEV
Copy link

@VENTDEV VENTDEV commented Jan 28, 2024

Fixes #93

We only change the mouse positions if the mouse is grabbed and we have focus. Otherwise, we get an offset. If we don't have the mouse grabbed, or mouse focus is lost, just pipe in the Xmotion values directly.

The code could probably be merged into the clipping/warping if(grabMouse) conditional below. But I believe this is cleaner with less nesting.

Affected backends
Linux X11 Mouse.

Merged feature and bug fix changes made to 2018 OIS 1.5.0 lib for GearCity 64-bit OSX Cocoa build into OIS's master + our Linux fixes. This update should also contain the Carbon non-exclusive mouse feature too.
@VENTDEV VENTDEV closed this Jan 28, 2024
@VENTDEV
Copy link
Author

VENTDEV commented Jan 28, 2024

Gah! Sorry, forgot to put the change I was submitting into its own branch.

You can cherry pick out the code from the first comment if you want it.

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.

Non-Exclusive X11 Linux Mouse Is Offset
1 participant