diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-23 10:17:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-23 10:17:59 +0400 |
commit | 4a4a3b4989355c699b72a8dc15df09fd47621528 (patch) | |
tree | ab9da790f9950f557862b413065a9a9f95e26f6d /source/blender/makesdna/DNA_sensor_types.h | |
parent | f08a4c9719ac3d745dfcbae3acc3ca48c38777ad (diff) |
Option for MouseFocus sensor. only used when 'Mouse over any' type is set.
Previously the only way to detect if the mouse moved over a different object was to enable true-level-triggering and have a python script detect the change.
When the Pulse option is set, focusing on a different object pulses true.
Python attribute is focusSensor.usePulseFocus.
This is similar to the collision sensors pulse option where changes in the set of collision objects generates an event too.
Found this functionality missing when trying to make a logic demo that used mouse-over with overlapping objects.
Diffstat (limited to 'source/blender/makesdna/DNA_sensor_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_sensor_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_sensor_types.h b/source/blender/makesdna/DNA_sensor_types.h index 8b29ce1338d..cc998de7eec 100644 --- a/source/blender/makesdna/DNA_sensor_types.h +++ b/source/blender/makesdna/DNA_sensor_types.h @@ -178,6 +178,9 @@ typedef struct bJoystickSensor { /* bMouseSensor->type: uses blender event defines */ +/* bMouseSensor->flag: only pulse for now */ +#define SENS_MOUSE_FOCUS_PULSE 1 + /* propertysensor->type */ #define SENS_PROP_EQUAL 0 #define SENS_PROP_NEQUAL 1 |