1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-08-29 17:07:59 +00:00

Update tron.lua

This commit is contained in:
LDDestroier
2019-01-12 23:08:38 -05:00
committed by GitHub
parent a0b4e31bed
commit 6816186cf6

View File

@@ -838,14 +838,15 @@ local getInput = function()
elseif evt[1] == "key_up" then
keysDown[evt[2]] = false
elseif evt[1] == "mouse_click" or evt[1] == "mouse_drag" then
keysDown[mkey] = false
if evt[1] == "mouse_drag" then
keysDown[mkey] = false
end
mkey = parseMouseInput(evt[2], evt[3], evt[4])
lastDirectionPressed = revControl[mkey]
keysDown[mkey] = true
elseif evt[1] == "mouse_up" then
keysDown[mkey] = false
mkey = parseMouseInput(evt[2], evt[3], evt[4])
lastDirectionPressed = nil
keysDown[mkey] = false
end
end