We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1143

Summary: Windows 7 - MouseMotion Event - LMB/RMB/MMB Failed
Product: SDL Reporter: Daniel <daniel350>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P1 Keywords: target-2.0.0
Version: 2.0.0   
Hardware: x86   
OS: Windows 7   
Attachments: testsprite2.c with some debug code.
icon.bmp

Description Daniel 2011-02-22 21:43:32 UTC
On Windows 7, a mouse motion event only contains VALID INFORMATION for the movement, and not the Left Right or Middle boolean flags.

Ie, you cannot determine from the mouse motion event, whether the user is holding the left/right/middle mouse button; they all return false regardless of user input.
Comment 1 Daniel 2011-02-22 21:50:14 UTC
The relative X and Y components of the event are also (always) set to 0. Unlike the behavior on Ubuntu 10.10
Comment 2 Ryan C. Gordon 2013-07-12 18:52:31 UTC
(Sorry if you get a lot of copies of this email, we're touching dozens of bug reports right now.)

Tagging a bunch of bugs as target-2.0.0, Priority 1.

This means we're in the final stretch for an official SDL 2.0.0 release! These are the bugs we really want to fix before shipping if humanly possible.

That being said, we don't promise to fix them because of this tag, we just want to make sure we don't forget to deal with them before we bless a final 2.0.0 release, and generally be organized about what we're aiming to ship.

Hopefully you'll hear more about this bug soon. If you have more information (including "this got fixed at some point, nevermind"), we would love to have you come add more information to the bug report when you have a moment.

Thanks!
--ryan.
Comment 3 Ryan C. Gordon 2013-07-31 14:36:28 UTC
Created attachment 1262 [details]
testsprite2.c with some debug code.


Test program to verify this bug (it doesn't verify).

--ryan.
Comment 4 Ryan C. Gordon 2013-07-31 14:39:25 UTC
I've tried this on both Windows XP in a virtual machine and a real install of Windows 7, and both work, with or without relative mouse mode enabled.

You can try the attached program; run it under the debugger in Visual Studio, and the Output pane will note when SDL reports a different mouse button during the mousemotion event.

--ryan.
Comment 5 Ryan C. Gordon 2013-07-31 14:40:42 UTC
Created attachment 1263 [details]
icon.bmp


Here's icon.bmp, in case you need that. It needs to be in the working directory when you run the program or testsprite won't run.

--ryan.