Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Ewering <blender@instinctive.de>2003-09-10 06:46:22 +0400
committerAlexander Ewering <blender@instinctive.de>2003-09-10 06:46:22 +0400
commit4646b046b69b61b54202396dcf373de08fe78cb7 (patch)
tree10dd4a2fb50cb0e68ea639988d1d8dc203fc8da8
parent422f4faa1b3698335fe200270b803dba929f6cd3 (diff)
Finally, the "Emulate 3 buttons" button in the userprefs actually
*does* turn ALT-LEFTMOUSE emulation on and off :)
-rw-r--r--source/blender/src/ghostwinlay.c5
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 {