Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: qqplayer on August 28, 2021, 11:43:52 AM
-
I want to ''block'' the controller a few seconds when the layout starts.
function on_signal_controls( sig )
{
switch ( sig )
{
case "up":
fe.signal( "" );
return true;
case "down":
fe.signal( "" );
return true;
case "left":
fe.signal( "" );
return true;
case "right":
fe.signal( "" );
return true;
}
return false;
}
fe.add_signal_handler(this, "on_signal_controls");
This function works but want I to disable it after a few seconds.