enable_mouse

If set to 0, panels and entities don't react on mouse clicks; if set to 2, panel event functions are also triggered by right mouse clicks.

Range:

0..2 (default 1).

Type:

var

Example:

var avihandle; 		 

function play_movie() { avihandle = media_play ("intro.avi", null, 100); enable_mouse = 0; // prevent accidentally clicking on panels in the background behind the video enable_joystick = 0; while (media_playing (avihandle) != 0) { if (key_any != 0) // enable interrupting the intro by any key (recommend!) { media_stop (avihandle); } wait(1); } enable_mouse = 1; enable_joystick = 1; }

See also:

on_anykey, enable_key, enable_joystick ► latest version online