Thanks.
I want to create an input display now. For this I have written a luascript that writes a line whenever input changes.
Language: Lua
(...)
keytable = joypad.get(1)
if keytable.left then left = "true" else left = "false" end
if keytable.right then right = "true" else right = "false" end
if keytable.down then down = "true" else down = "false" end
if keytable.up then up = "true" else up = "false" end
if keytable.start then start = "true" else start = "false" end
if keytable.select then select = "true" else select = "false" end
if keytable.a then a = "true" else a = "false" end
if keytable.b then b = "true" else b = "false" end
(...)
if lagcount ~= vba.lagcount() or leftbefore ~= left or rightbefore ~= right or upbefore ~= up or downbefore ~= down or startbefore ~= start or selectbefore ~= select or abefore ~= a or bbefore ~= b then
(...)
io.write( 'FINAL'..changes..' = vid5.trim('.. framecount_last_valchange..','.. frames..') .Part('.. lagcount..','.. left ..','..right..','.. up..','.. down..','.. a..','.. b..','.. start..','..select..')\n')
(...)
This works when inputting buttons to the emulator manually. But it does not work with pre-recorded movies. Is there a way to make it work? Otherwise, is there a way to convert my movie file to the information I need?