Ajout des derniers développement #1

Merged
kazhnuz merged 68 commits from chronicles-cbs into master 2020-08-02 11:14:18 +02:00
Showing only changes of commit b9816706e5 - Show all commits

View file

@ -158,13 +158,13 @@ function VirtualPad:checkKey(key)
local isDown = self:isDown(key) local isDown = self:isDown(key)
if (isDown) then if (isDown) then
if not (self.keys[key].isDown) then if not (self.keys[key].isDown) then
core.debug:print("virtualpad", "key " .. key .. " is Pressed") --core.debug:print("virtualpad", "key " .. key .. " is Pressed")
self.keys[key].isDown = true self.keys[key].isDown = true
self.keys[key].isPressed = true self.keys[key].isPressed = true
self.keys[key].isReleased = false self.keys[key].isReleased = false
else else
if (self.keys[key].isPressed) then if (self.keys[key].isPressed) then
core.debug:print("virtualpad", "key " .. key .. " is Down") --core.debug:print("virtualpad", "key " .. key .. " is Down")
self.keys[key].isPressed = false self.keys[key].isPressed = false
end end
end end
@ -175,7 +175,7 @@ function VirtualPad:checkKey(key)
self.keys[key].isReleased = true self.keys[key].isReleased = true
else else
if (self.keys[key].isReleased) then if (self.keys[key].isReleased) then
core.debug:print("virtualpad", "key " .. key .. " is Released") --core.debug:print("virtualpad", "key " .. key .. " is Released")
self.keys[key].isReleased = false self.keys[key].isReleased = false
end end
end end