修复放录像的时候虚拟按键不会自己动
This commit is contained in:
@@ -504,19 +504,27 @@ local playerActions={
|
|||||||
self.keyPressing[keyID]=true
|
self.keyPressing[keyID]=true
|
||||||
playerActions[keyID](self)
|
playerActions[keyID](self)
|
||||||
self.stat.key=self.stat.key+1
|
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
|
local L=GAME.rep
|
||||||
ins(L,self.frameRun)
|
ins(L,self.frameRun)
|
||||||
ins(L,keyID)
|
ins(L,keyID)
|
||||||
|
elseif self.streamProgress then
|
||||||
|
VK.press(keyID)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function Player:releaseKey(keyID)
|
function Player:releaseKey(keyID)
|
||||||
self.keyPressing[keyID]=false
|
self.keyPressing[keyID]=false
|
||||||
if self.id==1 and GAME.recording then
|
if self.id==1 then
|
||||||
local L=GAME.rep
|
if GAME.recording then
|
||||||
ins(L,self.frameRun)
|
local L=GAME.rep
|
||||||
ins(L,32+keyID)
|
ins(L,self.frameRun)
|
||||||
|
ins(L,32+keyID)
|
||||||
|
elseif self.streamProgress then
|
||||||
|
VK.release(keyID)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function Player:newTask(code,...)
|
function Player:newTask(code,...)
|
||||||
|
|||||||
Reference in New Issue
Block a user