Author Topic: Disable ''signal_handler'' after delay  (Read 1191 times)

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Disable ''signal_handler'' after delay
« on: August 28, 2021, 11:43:52 AM »
I want to ''block'' the controller a few seconds when the layout starts.

Code: [Select]
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.