Attract-Mode Support > Scripting

Disable ''signal_handler'' after delay

(1/1)

qqplayer:
I want to ''block'' the controller a few seconds when the layout starts.


--- Code: ---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");
--- End code ---

This function works but want I to disable it after a few seconds.

Navigation

[0] Message Index

Go to full version