BGE proposal: Mouse Over Any sensor with Pulse mode

Issue:
The MouseOverAny Sensor casts a ray from somewhere near the cameras origin to a far away point (100BU) both under the system mouse cursor.

The issue is that the MouseOverAny Sensor does not trigger the connected controller when hitting another object (see Collision sensor).

In a final game it is not likely that the mouse hits nothing as the whole view will be filled with objects.

My suggestion:
Add a Pulse mode (as for the Collision Sensor).

Benefits:
This allow more efficient checks when the mouse is other a different game object.

Workaround:
Enable True Pulse and let Python check if the hitObject changed.
This is very inefficient and should not be done at each frame.

Remarks:
It shouldn’t be a big deal to implement this enhancement.

You don’t need to do this. Print the directory of the sensor, you’ll see “usePulseFocus”, which enables the triggering when the hitObject changes, including the change from hitObject to NoneObject.

Thanks agoose, this is a good workaround.
But a button at the GUI is much better ;).

I committed a patch for this.
It is since rev. 50536 in the trunk.
http://projects.blender.org/tracker/index.php?func=detail&aid=32538&group_id=9&atid=306

cool thanks