Mouse SensorΒΆ

../../../../_images/bge_sensor_mouse1.jpg

Mouse sensor.

The Mouse sensor is for detecting mouse events.

See Sensor Common Options for common options.

Special Options: The controller consist only of a list of types of mouse events. These are:

Mouse over any
Gives a TRUE pulse if the mouse moves over any game object.
Mouse over
Gives a TRUE pulse if the mouse moves over the owner object.
Movement
Any movement with the mouse causes a stream of TRUE pulses.
Wheel Down
Causes a stream of TRUE pulses as the scroll wheel of the mouse moves down.
Wheel Up
Causes a stream of TRUE pulses as the scroll wheel of the mouse moves up.
Right button
Gives a TRUE pulse.
Middle button
Gives a TRUE pulse.
Left button
Gives a TRUE pulse.

A FALSE pulse is given when any of the above conditions ends.

There is no logic brick for specific mouse movement and reactions (such as first person camera), these have to be coded in Python.