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 998

Summary: Right mouse button doesn't work at all
Product: SDL Reporter: Pavel Kanzelsberger <kanzels>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Mac OS X 10.6   

Description Pavel Kanzelsberger 2010-05-06 14:04:41 UTC
This can be always reproduced on any version of MacOSX.

I tried with 32bit Leopard 10.5 and 64bit Snow Leopard 10.6 with either MacBook Pro trackpad or attached bluetooth or USB mouse.

Right mouse button event will never enter the event queue. I quickly checked the source code and I wasn't able to find out what is wrong. Maybe some deprecated NSEvent method is being used and it reports correctly only for left mouse button.
Comment 1 Ryan C. Gordon 2010-05-06 22:06:30 UTC
This is because this code was rewritten for SDL 1.3. It works in 1.2.

Jiang (our GSoC student from last year), had this thought in an IM conversation with me yesterday...

11:09:38 PM Jjgod Jiang: It seems the current mouse handling implementation cannot receive mouse events other than left mouse
11:10:38 PM Jjgod Jiang: I think that's because Cocoa_WindowListener inherits from NSResponder, while NSResponder normally does not handle these events (NSView will handle them directly, as the docs said.)

...but I haven't looked into it yet.

--ryan.
Comment 2 Sam Lantinga 2010-07-12 22:04:50 UTC
Hey Ryan, there's a patch for this in bug 910, can you take a look?

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