enable_joystick

If set to 0, no joystick button actions are executed. This is useful, for instance, for locking the joystick during movie playback to prevent menus popping up in the background by hitting random keys.

Range:

0,1

Type:

var

Example:

function play_movie()
{  
	var avihandle = media_play ("intro.avi", null, 100);
	enable_key = 0;
  enable_mouse = 0;
  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_key = 1;
  enable_mouse = 1;
  enable_joystick = 1;
}

See also:

on_anykey, enable_key, enable_mouse

► latest version online