Ajout des derniers développement #1
1 changed files with 3 additions and 3 deletions
|
@ -158,13 +158,13 @@ function VirtualPad:checkKey(key)
|
|||
local isDown = self:isDown(key)
|
||||
if (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].isPressed = true
|
||||
self.keys[key].isReleased = false
|
||||
else
|
||||
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
|
||||
end
|
||||
end
|
||||
|
@ -175,7 +175,7 @@ function VirtualPad:checkKey(key)
|
|||
self.keys[key].isReleased = true
|
||||
else
|
||||
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
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue