Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: theamity9 on May 07, 2018, 08:47:02 PM

Title: Quit AM After Holding Button Down For Some Time
Post by: theamity9 on May 07, 2018, 08:47:02 PM
Is there a script to have AM close only when the close AM hotkey has been held down for a defined duration of time?

And so it'll ignore it if the button was only pressed regularly?


Code: [Select]
if(ESC is_pressed_for(100)){
   exit;
}