修复放录像的时候虚拟按键不会自己动

This commit is contained in:
MrZ626
2021-12-02 08:46:03 +08:00
parent 36de1c0751
commit 97ca245dfc

View File

@@ -504,19 +504,27 @@ local playerActions={
self.keyPressing[keyID]=true
playerActions[keyID](self)
self.stat.key=self.stat.key+1
if self.id==1 and GAME.recording then
end
if self.id==1 then
if GAME.recording then
local L=GAME.rep
ins(L,self.frameRun)
ins(L,keyID)
elseif self.streamProgress then
VK.press(keyID)
end
end
end
function Player:releaseKey(keyID)
self.keyPressing[keyID]=false
if self.id==1 and GAME.recording then
local L=GAME.rep
ins(L,self.frameRun)
ins(L,32+keyID)
if self.id==1 then
if GAME.recording then
local L=GAME.rep
ins(L,self.frameRun)
ins(L,32+keyID)
elseif self.streamProgress then
VK.release(keyID)
end
end
end
function Player:newTask(code,...)