Posting for people doing RTA runs of DS. Taps the screen when holding Y + X.
Better version of the old script. Works even if you're pressing other buttons (e.g. holding Left then pressing Y and X), the old version wouldn't touch the screen.
while true do
if joypad.get()["Y"] and joypad.get()["X"] then
joypad.set({Touch=1})
joypad.setanalog({["Touch X"] = 127, ["Touch Y"] = 95})
else
client.clearautohold(); -- clear sticky
end
emu.frameadvance()
end