Option for MouseFocus sensor. only used when 'Mouse over any' type is set.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 23 Aug 2009 06:17:59 +0000 (06:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 23 Aug 2009 06:17:59 +0000 (06:17 +0000)
commit4a4a3b4989355c699b72a8dc15df09fd47621528
treeab9da790f9950f557862b413065a9a9f95e26f6d
parentf08a4c9719ac3d745dfcbae3acc3ca48c38777ad
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.
source/blender/makesdna/DNA_sensor_types.h
source/blender/src/buttons_logic.c
source/gameengine/Converter/KX_ConvertSensors.cpp
source/gameengine/Ketsji/KX_MouseFocusSensor.cpp
source/gameengine/Ketsji/KX_MouseFocusSensor.h
source/gameengine/PyDoc/GameTypes.py