Doc:2.6/Manual/Game Engine/Logic/Sensors/Mouse

提供: wiki
< Doc:2.6‎ | Manual‎ | Game Engine‎ | Logic‎ | Sensors
2018年6月29日 (金) 05:50時点におけるYamyam (トーク | 投稿記録)による版 (1版 をインポートしました)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

Mouse sensor

Mouse sensor

The Mouse sensor is for detecting mouse events.

See Sensor Common Options for common options.

Mouse Events
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.