Mac OS X: Problem with default three-button emulation

I am the principal author of Wings 3D, a cross-platform 3D modeler.
(http://www.wings3d.com)

I have a problem with the emulation of a three-button mouse which is
hard-coded in SDL for Mac OS X.

Wings has a Maya mode where you will tumble, track, and dolly in the
same way as in Maya: press the Alt/Option key and use either the left,
middle, or right button. Unfortunately, using SDL on the Mac, Alt+left
mouse button will be translated to Alt+middle mouse button (even if the
user has a three-button mouse).

Question: Could a way to turn off the three-button emulation be added
to SDL? An environment variable would be fine for me - I don’t need to
be able to turn it on and off.

/Bjorn

I am the principal author of Wings 3D, a cross-platform 3D modeler.
(http://www.wings3d.com)

I have a problem with the emulation of a three-button mouse which is
hard-coded in SDL for Mac OS X.

Question: Could a way to turn off the three-button emulation be added
to SDL? An environment variable would be fine for me - I don’t need to
be able to turn it on and off.

I took a look at the Quartz code, and it looks like the middle button
emulation is not in the SDL code, but is somewhere in the Os. Is it
something you can turn on and off in a control panel?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

I am the principal author of Wings 3D, a cross-platform 3D modeler.
(http://www.wings3d.com)

I have a problem with the emulation of a three-button mouse which is
hard-coded in SDL for Mac OS X.

Question: Could a way to turn off the three-button emulation be added
to SDL? An environment variable would be fine for me - I don’t need to
be able to turn it on and off.

Oops, I stand corrected.
I just added an environment variable SDL_HAS3BUTTONMOUSE for Quartz.
If you set that, then SDL will not check for alt and command key + mouse
button combinations in the Quartz video driver.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Thanks!

/BjornOn s?ndag, okt 6, 2002, at 00:23 Europe/Stockholm, Sam Lantinga wrote:

I just added an environment variable SDL_HAS3BUTTONMOUSE for Quartz.
If you set that, then SDL will not check for alt and command key +
mouse
button combinations in the Quartz video driver.