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 - Right mouse down doesn't work
Summary: Right mouse down doesn't work
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: Other Mac OS X 10.6
: P1 normal
Assignee: Eric Wing
QA Contact: Sam Lantinga
URL:
Keywords:
: 998 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-16 21:24 UTC by Sam Lantinga
Modified: 2011-01-20 17:34 UTC (History)
1 user (show)

See Also:


Attachments
Proposed patch (2.80 KB, patch)
2010-01-05 13:25 UTC, Aapo Hanski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!