Post subject: Recording button presses in AVI
mindnomad
He/Him
Former player
Joined: 11/2/2009
Posts: 100
I know that this isn't included in the current version of DeSmuME, but I've seen some of LightBlueYoshi's videos of Super Mario World on youtube, and I noticed how he was able to record the button presses onto his avi. I was wondering if it would be possible to implement that into DeSmuME? Like, be able to record the Vector Input or regular input into the AVI file when AVI recording.
Editor, Expert player (2073)
Joined: 6/15/2005
Posts: 3282
I think Snes9x records button presses automatically if you have input display on. For other emulators, you will need to use Lua (gui.text) to draw the input on screen.
Player (71)
Joined: 8/24/2004
Posts: 2562
Location: Sweden
Here is a Lua script I used for Snes9x. This will show up in the AVI output as well. If you want to use it for another emulator, see http://tasvideos.org/LuaScripting/TableKeys.html local table={} while true do table=joypad.get(1) if table.B then gui.text(0,0, "B") end if table.R then gui.text(20,0, "R") end if table.L then gui.text(25,0, "L") end if table.A then gui.text(5,0, "A") end if table.Y then gui.text(10,0, "Y") end if table.X then gui.text(15,0, "X") end if table.up then gui.text(90,0, "^") end if table.down then gui.text(95,0, "V") end if table.left then gui.text(85,0, "<") end if table.right then gui.text(100,0, ">") end if table.start then gui.text(30,0, "Start") end if table.select then gui.text(55,0, "Select") end emu.frameadvance() end