divyang4481 / bizhawk

Automatically exported from code.google.com/p/bizhawk
0 stars 0 forks source link

Extra info on Lua events #306

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if the oninputpoll event provided the lua script with which 
controller port was polled, or if the lua script could indicate which 
controllers to monitor.

It would be nice to have the onsavestate/onloadstate events tell the lua script 
which state was saved/loaded.

Original issue reported on code.google.com by pjga...@gmail.com on 11 Nov 2014 at 2:08

GoogleCodeExporter commented 9 years ago
According to the code, onsavestate and onloadstate pass the name of the 
savestate to the calling lua function, for reference see 
EMuLuaLibrary.Events.cs -> CallSaveStateEvent()

As for oninutpoll, I think the best implementation is to tell which controllers 
to monitor, this will be a big task though, since each core will have to 
implement it separately

Original comment by adeli...@tasvideos.org on 13 Nov 2014 at 11:38