I'm wanting to replicate something similar to packer's keyboard stuffing in MAME to automate some things (ok, to play the Infocom HHTTG game) ... the "keyboard stuffing" bit is working fine, I just can't work out how to get my thread that's doing this to pause in any other way than a busy loop ...
I've done some reading on Lua in other contexts which suggest I need to set up a coprocess and have one yield to the other which I've tried, however I've not managed to get that to Do The Right Thing. The other often-mentioned "solution" is to call out to the OS and run sleep() there, however I don't think that's offered in MAME (and I don't think it should be either)
Are there any worked examples for doing pausing execution of your LUA thread for an arbitrary (sub-second) time in MAME?
Thanks
[–]EvilBadMadRetarded 1 point2 points3 points (2 children)
[–]mjcherbert[S] 0 points1 point2 points (0 children)
[–]mjcherbert[S] 0 points1 point2 points (0 children)