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 1046

Summary: Missing mouse events under Windows
Product: SDL Reporter: John Wilson <johnnyc.wilson>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: jos, rainerd
Version: HG 2.0   
Hardware: x86   
OS: Windows (XP)   
Attachments: Patch for win32 mouse events

Description John Wilson 2010-08-17 17:09:16 UTC
Created attachment 535 [details]
Patch for win32 mouse events

The are no event handlers for the middle mouse button, right mouse buttons, and mouse wheel in the latest HG revision 4636. It has been like this for 3 months. I made a patch for this, though I'm not sure if the Xbutton or mouse wheel code is "correct" by your standards.
Comment 1 Rainer Deyke 2011-01-06 21:54:00 UTC
This bug renders SDL 1.3 unusable for me.  I'm going back to SDL 1.2 until this is fixed.
Comment 2 Nathaniel J Fries 2011-01-07 12:42:48 UTC
This still exists in the newest revision. The patch offered by Mr. Wilson seems acceptable, and I have verified that it resolves the issue (at least for the right button -- although I never had any doubt of that anyway).
Comment 3 Sam Lantinga 2011-01-19 22:38:18 UTC
Thank you very much for your patch for SDL 1.3!

Do you give me permission to release your code with SDL 1.3 and future
versions of SDL under both the LGPL and a closed-source commercial
license?
Comment 4 Sam Lantinga 2011-01-19 22:40:20 UTC
*** Bug 1093 has been marked as a duplicate of this bug. ***
Comment 5 John Wilson 2011-01-20 23:30:39 UTC
(In reply to comment #3)
> Thank you very much for your patch for SDL 1.3!
> 
> Do you give me permission to release your code with SDL 1.3 and future
> versions of SDL under both the LGPL and a closed-source commercial
> license?

Of course. Why would I post it here if I wouldn't allow you to do that? :p
Comment 6 Sam Lantinga 2011-01-21 01:13:39 UTC
Thanks!
http://hg.libsdl.org/SDL/rev/28003ba91f57