View Single Post
Old 09-08-2019, 01:03 PM   #18
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

My scripts all have their defer loop managed by the GUI. You can have an external function run on each loop though - as long as GUI.func hasn't already been set, GUI.func = my_function will call it each time.

However... at that point I think the GUI has already called gfx.getchar, so it might be too late to intercept any incoming keys.
Lokasenna is offline   Reply With Quote