Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right mouse button doesn't work at all #283

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Right mouse button doesn't work at all #283

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: Mac OS X 10.6, x86

Comments on the original bug report:

On 2010-05-06 14:04:41 +0000, Pavel Kanzelsberger wrote:

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.

On 2010-05-06 22:06:30 +0000, Ryan C. Gordon wrote:

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.

On 2010-07-12 22:04:50 +0000, Sam Lantinga wrote:

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 ***

@SDLBugzilla SDLBugzilla added bug duplicate This issue or pull request already exists labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant