From 72d60d7b6371fa0b3426ea0db3aecb45b9ae7a4a Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Wed, 17 Aug 2005 14:29:58 +0000 Subject: added the "mouse over any", makes the sensor more useful --- source/blender/makesdna/DNA_sensor_types.h | 1 + source/blender/src/buttons_logic.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender') diff --git a/source/blender/makesdna/DNA_sensor_types.h b/source/blender/makesdna/DNA_sensor_types.h index 4df3ecb5a11..7fcb400d66e 100644 --- a/source/blender/makesdna/DNA_sensor_types.h +++ b/source/blender/makesdna/DNA_sensor_types.h @@ -233,6 +233,7 @@ typedef struct bJoystickSensor { #define BL_SENS_MOUSE_WHEEL_DOWN 6 #define BL_SENS_MOUSE_MOVEMENT 8 #define BL_SENS_MOUSE_MOUSEOVER 16 +#define BL_SENS_MOUSE_MOUSEOVER_ANY 32 #define SENS_JOY_BUTTON 0 #define SENS_JOY_BUTTON_PRESSED 0 diff --git a/source/blender/src/buttons_logic.c b/source/blender/src/buttons_logic.c index dd0b3082c58..33a64473a00 100644 --- a/source/blender/src/buttons_logic.c +++ b/source/blender/src/buttons_logic.c @@ -1219,7 +1219,7 @@ static short draw_sensorbuttons(bSensor *sens, uiBlock *block, short xco, short /* Line 2: type selection. The number are a bit mangled to get * proper compatibility with older .blend files. */ str= "Type %t|Left button %x1|Middle button %x2|" - "Right button %x4|Wheel Up %x5|Wheel Down %x6|Movement %x8|Mouse over %x16"; + "Right button %x4|Wheel Up %x5|Wheel Down %x6|Movement %x8|Mouse over %x16|Mouse over any%x32"; uiDefButS(block, MENU, B_REDR, str, xco+10, yco-44, width-20, 19, &ms->type, 0, 31, 0, 0, "Specify the type of event this mouse sensor should trigger on."); -- cgit v1.2.3