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 910

Summary: Right mouse down doesn't work
Product: SDL Reporter: Sam Lantinga <slouken>
Component: eventsAssignee: Eric Wing <ewing.bug.sdl>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P1 CC: kanzels
Version: HG 2.0   
Hardware: Other   
OS: Mac OS X 10.6   
Attachments: Proposed patch

Description Sam Lantinga 2009-12-16 21:24:43 UTC
-[Cocoa_WindowListener rightMouseDown:] doesn't get called, but rightMouseUp does.  Searching around it seems like this is a common problem, but I haven't found a solution.
Comment 1 Sam Lantinga 2009-12-16 21:25:19 UTC
Eric, can you take a quick look at this?

Thanks!
Comment 2 Aapo Hanski 2010-01-05 13:25:19 UTC
Created attachment 477 [details]
Proposed patch

Here's a fix for this bug. While the event isn't send to the listener, it's sent to the window's content view, which is kind of weird. While I was there I also corrected the button numbers (Cocoa's start at 0, SDL's at 1) and a typo.
Comment 3 Sam Lantinga 2010-07-12 22:04:50 UTC
*** Bug 998 has been marked as a duplicate of this bug. ***
Comment 4 Sam Lantinga 2011-01-20 17:34:04 UTC
I looked and a fix very similar to this has been applied to the current snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

Thanks!