At a glance at a few of the pages, I spot that FCEUX is listed as an emulator that doesn't accept hotkeys while paused. It's true that I didn't see input.registerhotkey in this emulator, but for some reason,
FCEUX's gui.register is called repeatedly while paused. Odd as it may be, but the fact it's called at all while the emulation is paused will allow a way to catch a key and process it without advancing any frames. Should be good to know about when attempting to try this script on FCEUX.
Try this bit of code in FCEUX:
function Fn()
local T= input.get()
local Count= 0
for k,v in pairs(T) do
Count= Count+ 1
gui.text(1,8*Count,k)
end
end
gui.register(Fn)
Pause FCEUX, and push various keys. The script should still react even though FCEUX is paused. I'm not sure what other emulators have a gui.register like this one, however, other than the fact Snes9x doesn't seem to.
With this knowledge,
it should be possible to create a variant of input.registerhotkey. It eats up gui.register, but it should hopefully allow one more emulator to deal with input for MacroLua while paused.
Good to see us getting a new script to play around with. I'll be looking at this and see if I can get use out of it. Most likely yes. I'll try to be a source of ideas in case you need a few from me.