DS cross hair display script - account for movie playback

This commit is contained in:
adelikat 2020-03-28 17:27:51 -05:00
parent 6511632f15
commit cea0e80637
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ while true do
local bufferY = client.bufferheight()
local btns = joypad.get()
if movie.mode() == "PLAY" and emu.framecount() > 0 then
btns = movie.getinput(emu.framecount() - 1)
end
local x = btns['TouchX']
local y = btns['TouchY']
local isDown = btns['Touch']