fix: don't print input
It's not really useless for debut for now
This commit is contained in:
parent
08c5724e96
commit
b9816706e5
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue