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

X11 relative mouse motion vs grabbing cursor outside of window... #242

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 1.2.11
Reported for operating system, platform: Linux, x86

Comments on the original bug report:

On 2006-10-18 01:11:13 +0000, Ryan C. Gordon wrote:

(X11 driver only?)

Mouse motion events will only give endless relative values if mouse is hidden and grabbed when system cursor is in the SDL window. If the input is grabbed when the system cursor is outside the window, it'll only give relative motion events until it hits the edge of the window, and then no events will fire until the mouse rolls back in the opposite direction.

Easiest reproduction case: build program from here:

http://www.libsdl.org/pipermail/sdl/2006-October/076927.html

Start program, hit 'u' to ungrab the mouse, move it outside the window, and hit 'g' to regrab it. Watch mouse motion information on stdout, and how it clamps to window dimensions. Hit 'u' again and then 'g' while cursor is still inside the window and see that the absolute motion values still clamp to the window but the relative ones can go indefinitely in any direction.

--ryan.

On 2006-10-23 04:50:10 +0000, rasz wrote:

dupe of http://bugzilla.libsdl.org/show_bug.cgi?id=299 ?

On 2006-10-23 05:13:17 +0000, Ryan C. Gordon wrote:

Yeah, dupe.

--ryan.

*** This bug has been marked as a duplicate of 299 ***

@SDLBugzilla SDLBugzilla added bug duplicate This issue or pull request already exists labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant