diff options
author | Alexander Ewering <blender@instinctive.de> | 2003-09-10 06:46:22 +0400 |
---|---|---|
committer | Alexander Ewering <blender@instinctive.de> | 2003-09-10 06:46:22 +0400 |
commit | 4646b046b69b61b54202396dcf373de08fe78cb7 (patch) | |
tree | 10dd4a2fb50cb0e68ea639988d1d8dc203fc8da8 /source | |
parent | 422f4faa1b3698335fe200270b803dba929f6cd3 (diff) |
Finally, the "Emulate 3 buttons" button in the userprefs actually
*does* turn ALT-LEFTMOUSE emulation on and off :)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/ghostwinlay.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/ghostwinlay.c b/source/blender/src/ghostwinlay.c index f03831b9f71..b96878f3ff2 100644 --- a/source/blender/src/ghostwinlay.c +++ b/source/blender/src/ghostwinlay.c @@ -42,6 +42,8 @@ #include "MEM_guardedalloc.h" +#include "DNA_userdef_types.h" /* U.flag & TWOBUTTONMOUSE */ + #include "BLI_blenlib.h" #include "GHOST_C-api.h" @@ -405,7 +407,8 @@ static int event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr private) { if (val) { if (win->commandqual) { bbut= win->faked_mbut= RIGHTMOUSE; - } else if (win->lqual & LR_ALTKEY) { + } else if ((win->lqual & LR_ALTKEY) && (U.flag & TWOBUTTONMOUSE)) { + /* finally, it actually USES the userpref! :) -intrr */ bbut= win->faked_mbut= MIDDLEMOUSE; } } else { |